PKGMAN(1) General Commands Manual PKGMAN(1)

pkgmanadvanced package management tool

pkgman [-Vh] [--no-std-config] [--config=conffile] [--config-set="string"] [--config-append="string"] [--config-prepend="string"] [--root=rootdir] [--] command [args]

pkgman is a package management tool that provides additional functionality to basic package management utilities, like pkgmk(8), pkgadd(8), pkgrm(8), and pkginfo(1).

Each command has its own set of specific options and arguments. The following options are common to all commands:

Ignore default (/etc/pkgman.conf) configuration file.
=conffile
Use an alternate configuration file instead of the default /etc/pkgman.conf.
="string"
Set string in configuration, overriding configuration file.
="string"
Append string to configuration.
="string"
Prepend string to configuration.
=rootdir
Specify an alternate root directory instead of the default ‘/’.
, --version
Print program version and exit.
, --help
Print the command's help (actually the manual page) if command specified. Otherwise, print this manual page as a help message.
Double dash “--” signals the end of options and disables further option processing. Any arguments after the “--” are treated as command and/or command's arguments. It helps to specify command arguments that starts with “--” and pkgman won't confuse it with an option. For example:
pkgman search --regex -- -lib
-- search ([i] = installed)
[i] alsa-lib
[i] p5-libwww
[...]

pkgman --regex -- search -lib
-- search ([i] = installed)
[i] alsa-lib
[i] p5-libwww
[...]

pkgman uses so-called commands, which always have to be the first non-option argument passed. The commands can be divided into the following self-explanatory categories:

pkgman-dumpconfig(1)
dump the configuration
pkgman-list(1)
print list of available packages
pkgman-list-dup(1)
print list of duplicate packages
pkgman-list-nodependents(1)
print list of packages that no other depends on them
pkgman-list-locked(1)
print list of locked packages
pkgman-list-orphans(1)
print list of orphaned packages
pkgman-printf(1)
print formatted list of available packages
pkgman-info(1)
print package info
pkgman-readme(1)
print the package's README
pkgman-path(1)
print path to package source
pkgman-isinst(1)
print whether packages are installed or not
pkgman-current(1)
print installed package version
pkgman-diff(1)
print the differences between installed and available packages

pkgman-dep(1)
print dependencies for a package
pkgman-rdep(1)
print reverse dependencies for a package

pkgman-search(1)
search the packages sources directories for package name
pkgman-dsearch(1)
search the packages sources directories for package name description
pkgman-fsearch(1)
search the packages sources directories for a file in package footprint

pkgman-install(8)
install package(s)
pkgman-update(8)
update installed package(s)
pkgman-remove(8)
remove installed package(s)

pkgman-sysup(8)
update all outdated packages
pkgman-lock(8)
lock the package(s)
pkgman-unlock(8)
unlock the package(s)

pkgman-ls(1)
print out a listing of the package's directory
pkgman-cat(1)
print out the package's file
pkgman-edit(8)
edit the package's file

/etc/pkgman.conf
Configuration file. See pkgman.conf(5) for more information.
/var/lib/pkg/db
Database of currently installed packages.
/var/lib/pkg/locked
Database of currently locked packages. Used by pkgman-lock(8), pkgman-unlock(8) and pkgman-list-locked(1).

: When the --root=rootdir option is specified, both databases location changes to rootdir/var/lib/pkg/db and rootdir/var/lib/pkg/locked respectively.

pkgman.conf(5)

The original implementation of pkgman was done by Johannes Winkelmann <jw@tks6.net> as “” tool for CRUX.

This implementation was extensively re-worked for Zeppe-Lin by Alexandr Savca <alexandr.savca89@gmail.com>.

September 9, 2023 Zeppe-Lin