pm
installs, deletes, inspects and updates
packs on a POSIX operating system.
-a
<file>
- Add pack(s) under $ROOT. This action will fail if a file from the pack
already exists under $ROOT (See
-f
flag)
-d
<arg>
- Delete a pack from the system based on informations loaded from either a
filename or a pack name. In case of a pack name, the information is loaded
from $DATA/<arg>
-u
<file>
- Update pack by first deleting it, and reinstalling it. If the version of
the pack provided is the same as the installed one, do nothing.
-i
[name]
- If a name is provided, print the list of files installed for
name.
Otherwise, list all packs installed on the system (increase verbosity with
-v
to see the version).
-v
- Increase verbosity by one level. There are three levels of logging, as
follow:
- write out which action has been done (INFO)
- detail all tasks being executed (VERBOSE)
- report every change made to the filesystem (DEBUG)
Each level includes the messages of the previous ones.
-f
- Force overwriting files during installation. This shouldn't be needed, so
take extra care when using it.
To install a pack to ~/.local, upgrade and
then delete it:
export ROOT=~/.local
export DATA=~/.cache/pmdb
pm -a name@1.0.tbz
pm -u name@1.1.tbz
pm -d name
See pack(5) for details
on how to create a valid pack.
To get a list of packs installed, and their current version can be
inspected with the -i
switch. The files installed by
a pack are listed if a name is provided.
ROOT
- Specifies the directory to use as the rootfs for packs installation
(default: /).
DATA
- Directory where the pack metadata will be stored (default:
/var/db/pm).