PM(1) General Commands Manual PM(1)

pmpack manager

pm [-adfiuv] [PACK..]

pm installs, deletes, inspects and updates packs on a POSIX operating system.

Add pack(s) under $ROOT. This action will fail if a file from the pack already exists under $ROOT (See -f flag)
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>
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.
If a name is provided, print the list of files installed for . Otherwise, list all packs installed on the system (increase verbosity with -v to see the version).
Increase verbosity by one level. There are three levels of logging, as follow:
  1. write out which action has been done (INFO)
  2. detail all tasks being executed (VERBOSE)
  3. report every change made to the filesystem (DEBUG)

Each level includes the messages of the previous ones.

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.

  pm -iv
  pm -i name

Specifies the directory to use as the rootfs for packs installation (default: /).
Directory where the pack metadata will be stored (default: /var/db/pm).


Willy Goiffon <>

2016-01-13 POSIX.1-2008