PKG_INFO(1) | General Commands Manual | PKG_INFO(1) |
pkg_info
— a
utility for displaying information on software packages
pkg_info |
[-BbcDdFfhIikLmNnpqRrSsVvX ]
[-E pkg-name]
[-e pkg-name]
[-K pkg_dbdir]
[-l prefix]
pkg-name ... |
pkg_info |
[-a | -u ] [flags] |
pkg_info |
[-Q variable]
pkg-name ... |
The pkg_info
command is used to dump out
information for packages, which may be either packed up in files or already
installed on the system with the pkg_create(1)
command.
The pkg-name may be the name of an installed
package (with or without version), a pattern matching several installed
packages (see the PACKAGE
WILDCARDS section for a description of possible patterns), the pathname
to a binary package, a filename belonging to an installed package (with
-F
), or a URL to an FTP-available package.
The following command line options are available:
-a
-u
. When neither -a
nor
-u
is given, the former is assumed.-B
-b
-c
-D
-d
-E
pkg-name-q
option. pkg-name can
contain wildcards (see the PACKAGE
WILDCARDS section below).-e
pkg-name-q
option. pkg-name can
contain wildcards (see the PACKAGE
WILDCARDS section below).-F
-f
-h
-I
-i
-K
pkg_dbdirPKG_DBDIR
configuration
option with the value pkg_dbdir.-k
-L
-l
prefix-q
)
shown with prefix. This is primarily of use to
front-end programs that want to request a lot of different information
fields at once for a package, but don't necessary want the output
intermingled in such a way that they can't organize it. This lets you add
a special token to the start of each field.-m
-N
-n
-p
-Q
variable-q
-R
-r
-S
-s
-u
-a
.-V
-v
-X
Package info is either extracted from package files named on the command line, or from already installed package information in <PKG_DBDIR>/<pkg-name>.
When the -F
option is used, a filename can
be given instead of a package name to query information on the (installed)
package that file belongs to. The filename is resolved to a package name
using the package database. The filename must be absolute, as in the output
of
pkg_info -aF
pkg_info -Fe
/path/to/file
pkg_info -LF
/path/to/file
In the places where a package name/version is expected, e.g., for
the -e
option, several forms can be used. Either use
a package name with or without version, or specify a package wildcard that
gets matched against all installed packages.
Package wildcards use fnmatch(3). In addition, csh(1) style {,} alternates have been implemented. Package version numbers can also be matched in a relational manner using the “≥”, “≤”, “>”, and “<” operators. For example,
pkg_info -e
'name≥1.3'
pkg_info -e
'name≥1.3<2.0'
The collating sequence of the various package version numbers is unusual, but strives to be consistent. The magic string “alpha” equates to “alpha version”, and sorts before a beta version. The magic string “beta” equates to “beta version”, and sorts before a release candidate. The magic string “rc” equates to “release candidate”, and sorts before a release. The magic string “pre”, short for “pre-release”, is a synonym for “rc”. For example, “name-1.3alpha2” will sort before “name-1.3beta1”, and they both sort before “name-1.3rc1”. Similarly, “name-1.3rc3” will sort before “name-1.3”, and after “name-1.2.9”. The magic string “pl” equates to “patch level”, and has the same value as a dot (‘.’) in the dewey-decimal ordering schemes, as does the underscore (‘_’). Additionally, alphabetic characters sort in the same place as their numeric counterparts, so that “name-1.2e” has the same sorting value as “name-1.2.5”.
See pkg_install.conf(5) for options, that can also be specified using the environment.
pkg_add(1), pkg_admin(1), pkg_create(1), pkg_delete(1), pkg_install.conf(5) pkgsrc(7)
January 11, 2015 | Mac OS X 14 |