commands.sh

pkginfo

linux

Query the package database on a CRUX system.

More info →

Options (3)

-i, --installedboolean

List installed packages and their versions

Example: pkginfo {{[-i|--installed]}}
-l, --listboolean

List files owned by a package

Example: pkginfo {{[-l|--list]}} {{package}}
-o, --ownerboolean

List the owner(s) of files matching a pattern

Example: pkginfo {{[-o|--owner]}} {{pattern}}

Examples (4)

List installed packages and their versions

pkginfo [-i|--installed]

List files owned by a package

pkginfo [-l|--list] package

List the owner(s) of files matching a pattern

pkginfo [-o|--owner] pattern

Print the footprint of a file

pkginfo -f path/to/file
made by @shridhargupta | data from tldr-pages