PKG_INFO(1) | General Commands Manual | PKG_INFO(1) |
pkg_info
— display
information on software packages
pkg_info |
[-AaCcdfIKLMmPqRSstUvz ]
[-D name[=value]]
[-E filename]
[-e pkg-name]
[-l str]
[-Q query]
[-r pkgspec]
[pkg-name ...] |
The pkg_info
command is used to dump out
information for packages, as created by
pkg_create(1), which may be still
packed up or already installed on the system with the
pkg_add(1) command.
The pkg-name may be the name of an installed
package, the pathname to a package distribution file, or a URL to a package
available through FTP, HTTP, HTTPS, or SCP. pkg_info
will try to complete pkg-name with a version number
while looking through installed packages.
When browsing through uninstalled packages, running
pkg_info -I *.tgz
will report a summary line for
each package, so that it is possible to run pkg_info
pkgname.tgz
to obtain a longer package description, and
pkg_add -n pkgname.tgz
to check that the
installation would proceed cleanly, including dependencies.
The following command-line options are supported:
-A
-a
-C
-c
-D
name[=value]SIGNER
snap
unsigned
-d
-E
filename-e
pkg-name-q
option.
The given pkg-name is actually a package
specification, as described in
packages-specs(7). For
example, pkg_info -e 'name->=1.3'
will match
versions 1.3 and later of the name package.
-e
pkgpathpkg_info -e x11/kde/base3
will match any package
that was compiled according to
${PORTSDIR}/x11/kde/base3.-f
-I
-K
-L
.-L
-l
str-q
)
shown with str. 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 necessarily 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
-m
-P
-Q
query-q
-R
-r
pkgspec-S
-s
-t
-U
-v
-z
-m
.
Only shows stems, flavors and branches information. To be reused with
pkg_add(1) -l
to recreate a package installation with different versions and no
ambiguity. Note that this intentionally does not include firmware, as they
are not handled by pkg_add(1).PKG_DBDIR
PKG_DBDIR
environment
variable.PKG_PATH
PKG_PATH
is set. If
PKG_PATH
is used, the suffix “.tgz”
is automatically appended to the pkg-name, whereas
searching in the current directory uses pkg-name
literally. Each entry consists of a directory name. URL schemes such as
FTP, HTTP, HTTPS, or SCP are also appropriate. The current directory may
be indicated implicitly by an empty directory name, or explicitly by a
single period (‘./
’). Special
sequences ‘%a’, ‘%c’, ‘%m’,
‘%v’ will be expanded.PKG_TMPDIR
TRUSTED_PKG_PATH
PKG_PATH
, but it is searched
before PKG_PATH
and waives any kind of signature
checking.Package info is either extracted from package files named on the command line, or from already installed package information in /var/db/pkg/<pkg-name>.
pkg_add(1), pkg_create(1), pkg_delete(1), bsd.port.mk(5), package(5), packages-specs(7), pkgpath(7)
July 4, 2019 | OpenBSD-current |