Skip to content
Neonwave175Public

About

A rolling release package manager

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

Repository files navigation

Luna Package Manager

Fast, quirky and experimental like Luna Lovegood. Luna builds and installs software from Git repositories using package recipes.

Logo

Installation

Luna requires Python 3.10+, Git, and the tools needed to build your chosen packages. The GUI also requires Tkinter.

python3 -m pip install git+https://github.com/Neonwave175/Luna.git

Add ~/.local/luna to your PATH if your package recipes install executables there. Recipes run shell commands with your user permissions; only use commands and repositories you trust.

CLI

  • luna add <name> <git-url> <compile-command> [configure-command] [install-command] registers a package. Quote commands containing spaces.
  • luna install <name> [name ...] builds and installs packages. A JSON lunafile can also be supplied in place of a name.
  • luna sync <file> registers and installs the packages in a lunafile.
  • luna list lists registered packages and their installation status.
  • luna update updates installed packages.
  • luna remove <name> removes its source directory and an executable with the same name in ~/.local/luna, and marks it uninstalled. Files installed elsewhere by a recipe must be removed separately.

A lunafile is a JSON array of objects with Name, URL, and optional Config, Compile, and Install fields.

GUI

Run luna-gui to launch the Tkinter interface.

Python API

from luna import lunaapi as luna

luna.add("tokei", "https://github.com/XAMPPRocky/tokei.git",
         "cargo build --release", "",
         "mkdir -p ~/.local/luna && cp target/release/tokei ~/.local/luna/")
luna.install("tokei", log_cb=print)
print(luna.list_packages())
print(luna.get("tokei"))
print(luna.needs_update("tokei"))
luna.update_all()
luna.remove("tokei")

Recipes and sources are stored under ~/.local/lunaorigin and ~/.local/lunasource. The API's set_root(path) changes the parent directory for these locations; set_root() restores the default.

About

A rolling release package manager

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages