infopkg

query the package database

Synopsis

infopkg -i [ -r root ]
infopkg -l

pkg|file

[ -r root ]
infopkg -o

pattern

[ -r root ]
infopkg -f

file

Description

infopkg queries the package database or inspects package archives. Exactly one operation must be specified.

Options

-i
List all installed packages with their versions.
-l pkg|file
List files belonging to an installed package, or a package archive on disk.
-o pattern
Find which package owns a file. pattern is an extended regular expression matched against the full path.
-f file
Print the footprint of a package archive. Does not require the package database.
-r root
Use an alternative installation root.

Examples

infopkg -i                               # list installed packages
infopkg -l openssl                       # files in openssl
infopkg -l nftables#1.1.5-1.pkg.tar.gz  # files in archive
infopkg -o '/bin/ls'                     # who owns /bin/ls
infopkg -o 'libssl'                      # find libssl files
infopkg -f package.pkg.tar.gz           # show footprint

Exit Status

0 on success, 1 on error.

See Also

addpkg(8), delpkg(8)

LLVM musl libc libressl Independent