PKGINFO(1) General Commands Manual PKGINFO(1)

pkginfodisplay software package information

pkginfo [-Vh] [-r rootdir] {-f file | -i | -lpkgname | file⟩ | -o pattern}

pkginfo is a package management utility, which displays information about software packages that are installed on the system or that reside in a particular directory.

The options are as follows:

file, --footprint=file
Print footprint for file.

This feature is mainly used by pkgmk(8) to create and compare package footprints.

, --installed
List installed packages and their version.
pkgname | file⟩, --list=⟨pkgname | file
List files owned by the specified package or contained in file.
pattern, --owner=pattern
List owner(s) of file(s) matching pattern, where the pattern is a regex in regex(3) format.
rootdir, --root=rootdir
Specify an alternate root directory instead of the default ‘/’.

This should be used if you want to display information about a package that is installed on a temporary mounted partition, which is “owned” by another system. By using this option you specify which package database to use.

, --version
Print version and exit.
, --help
Print help and exit.

: Options -f/--footprint, -i/--installed, -l/--list, and -o/--owner are mutually exclusive.

/var/lib/pkg/db
Database of currently installed packages.

pkgadd(8), pkgrm(8)

May 10, 2024 Zeppe-Lin