PKG.INFO

query the package database

Synopsis

pkg.info -i [ -r root ]
pkg.info -l

pkg|file

[ -r root ]
pkg.info -o

pattern

[ -r root ]
pkg.info -f

file

Description

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

Options

-i, --installed
List all installed packages with their versions, sorted by name.
-l pkg|file, --list pkg|file
List files belonging to an installed package. If the argument is not an installed package name, it is treated as a package archive file on disk.
-o pattern, --owner pattern
Find the package that owns a file. __IBLOCK__pattern is an extended regular expression matched against the full path (with leading /).
-f file, --footprint file
Print the footprint of a package archive file. Does not require the package database.
-r root, --root root
Use an alternative installation root.

Examples

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

Exit Status

0 on success, 1 on error.

See Also

Pure LLVM musl libc Source-Based Independent