Apx (/à·peks/) is the default package manager in Vanilla OS. It is a wrapper around multiple package managers to install packages and run commands inside a managed container.
Special thanks to distrobox for making this possible.Apx is a package manager with support for multiple sources, allowing you to install packages in subsystems.
Usage:
apx [command]
Available Commands:
[subsystem] Work with the specified subsystem, accessing the package manager and environment.
completion Generate the autocompletion script for the specified shell
help Help about any command
pkgmanagers Work with the package managers that are available in apx.
stacks Work with the stacks that are available in apx.
subsystems Work with the subsystems that are available in apx.
Flags:
-h, --help help for apx
-v, --version version for apx
Use "apx [command] --help" for more information about a command.
The official documentation and manpage for apx are available at https://docs.vanillaos.org/docs/en/apx.
To add new dependencies, use go get as usual, then run go mod tidy and go mod vendor before committing the code.
Contribute translations for the manpage and help page in Weblate.
Once the translation is complete in Weblate and the changes committed, clone the repository using git and perform go build, create a directory using the mkdir man/<language_code> && mkdir man/<language_code>/man1 command, and execute this command LANG=<language_code> ./apx man > man/<language_code>/man1/apx.1. Open a PR for the generated manpage here.
Apx has been designed as a distro-agnostic tool, allowing it to work with any distribution.
- You must have
goinstalled from your distribution's native repositories to compileapx. - You must have
gitinstalled to clone the repository. - You must have either
podman(suggested) ordockerinstalled. - You must have
makeinstalled for the installation.
Clone apx's repository using git and enter it using cd:-
git clone --recursive https://github.com/Vanilla-OS/apx.git
cd apxBuild apx using make:-
make buildInstall apx using make:-
sudo make installInstall the apx manpages using make:-
sudo make install-manpagesUninstall apx using make:-
make uninstallUninstall apx man pages using make:-
make uninstall-manpagesThe prefix or installation destination can be changed using PREFIX and DESTDIR.
To install apx into ~/.local for example:-
make install PREFIX=$HOME/.local
make install-manpages PREFIX=$HOME/.localOr into a separate root:-
make install DESTDIR=$HOME/altroot
make install-manpages DESTDIR=$HOME/altrootApx is packaged in various sources by our community, if you aren't comfortable with building apx manually you can install a package listed below.
(Note: These packages are unofficial if there are any issues with packaging report them to the respective maintainers, if there are any issues with apx functionalities report them here.)