PKG-INFO(1)

NAME
pkg info - displays information for packages

SYNOPSIS
pkg info <pkg-name>
pkg info -a
pkg info [-egxXEdrlsqopOfRF] <pkg-name>
pkg info [-drlsq] -F <pkg-file>

DESCRIPTION
pkg info is used for displaying information for packages.

OPTIONS
The following options are supported by pkg info:

-a  Display all installed packages.

-f  Display full information about the packages matching <pkg-name>.

-R  Display the full yaml (raw) about the packages matching <pkg-name>.

-e  If <pkg-name> is installed and registered in the database, return 0, otherwise return 1. Useful for checking whether the package is installed.

-g  Treat <pkg-name> as a shell glob pattern.

-x  Treat <pkg-name> as a regular expression.

-X  Treat <pkg-name> as an extended regular expression.

-d  Display the list of packages which depend on <pkg-name>.

-r  Display the list of packages required by <pkg-name>.

-l  Display all files installed by <pkg-name>.

-s  Display the total size of files installed by <pkg-name>

-q  Be “quiet”. Prints only the requested information without displaying many hints.

-O  Search is done by the <pkg-name> origin. Added only for Ports compatibility.

-E  Currently not implemented. Added only for Ports compatibility.

-o  Display <pkg-name> origin.

-p  Display the installation prefix for each package matching <pkg-name>.

-F <pkg-file>
    Displays information from the package archive <pkg-file>.

ENVIRONMENT
The following environment variables affect the execution of pkg info. See pkg.conf(5) for further description.

PKG_DBDIR

FILES
See pkg.conf(5).

SEE ALSO
pkg(1), pkg-add(1), pkg-autoremove(1), pkg-search(1), pkg-backup(1), pkg-install(1), pkg-delete(1), pkg-create(1), pkg-register(1), pkg-repo(1), pkg-update(1), pkg-upgrade(1), pkg-version(1), pkg-which(1), pkg.conf(5),