Skip to content
Max Kofler edited this page Sep 24, 2022 · 4 revisions

Usage

leaf works really simple. There are some actions that can be performed, some need packages to work with and leaf's behavior can be controlled by the usage of flags.

Actions

Leaf supports the following actions:

update

This action does not need any packages to work with. It just downloads the newest version of the package list. This should be done from time to time. Some packages may break if you use a old package list, so keep it up to date.

install

This command, as the name implies, installs the supplied packages. It will use the package list to determine the download links of the packages, store them, extract them and deploy them. This action will ask you if you are sure about the action after presenting you the changes that will be made.

Flags

Leaf supports a couple of flags:

verbosity

The flags '-v' and '-V' specify the verbosity of leaf. '-v' will lead to more detailed output of information over the process while '-V' will absolutely flood you with information, meant for developers only.

redownload

This flag forces leaf to redownload the specified packages, this means that leaf will redownload only the packages you supply on the command line, the dependencies will not be downloaded, because that would lead to a LOT of downloads (you would download the whole Distribution up until your package).

Options

Options let you specify things that can't be expressed with flags:

rootPath

This is the path leaf will apply the packages to, this helps to rescue broken systems. Say you have your broken AcaciaLinux mounted at /mnt/acacia, you can install packages on it by using leaf install --rootPath=/mnt/acacia mypackage.

Clone this wiki locally