pkginfo(1)pkginfo(1)NAMEpkginfo - display software package information
SYNOPSISpkginfo [-q|x|l] [-p|i] [-a arch] [-v version]
[-c category1,[category2[,...]]] [pkginst[,pkginst[,...]]]
pkginfo [-d device [-q|x|l] [-a arch] [-v version]
[-c category1,[category2[,...]]] [pkginst[,pkginst[,...]]]
DESCRIPTIONpkginfo displays information about software packages that are installed
on the system (as requested in the first synopsis) or that reside on a
particular device or directory (as requested in the second synopsis).
When run without options, pkginfo displays one line of information about
every installed package (whether installed completely or partially). The
information displayed includes the primary category, package instance,
and name of the package. For a package produced before System V Release
4, pkginfo displays only the package name and abbreviation.
The -p and -i options are meaningless if used in conjunction with the -d
option. The -q, -x, and -l options are mutually exclusive.
The options for this command are:
-q Do not list any information, but check (that is, query) from
within a program whether or not a package has been installed.
-x Display an extracted listing of package information, including
the package abbreviation, package name, package architecture
(if available), and package version (if available).
-l Display a long format listing of package information, including
all available information about the designated package(s).
-p Display information only for partially installed packages.
-i Display information only for fully installed packages.
-a arch Specify the architecture of the package as arch.
-v version
Specify the version of the package as version. All compatible
versions can be requested by preceding the version name with a
tilde (~). The list produced by -v will include pre-Release 4
packages (with which no version numbers are associated).
Multiple white spaces are replaced with a single space during
version comparison.
-c cat Select packages to be displayed on the basis of category
category. (Categories are defined in the category field of the
pkginfo file; see pkginfo(4) for details.) If more than one
category is supplied, the package can match no more than one of
Page 1
pkginfo(1)pkginfo(1)
the list of categories. The match is not case specific.
pkginst Designate a package by its instance. An instance can be a
package abbreviation or a specific instance (for example,
inst.1 or inst.beta). All instances of a package can be
requested by inst.*. When using this format, enclose the
command line in single quotes to prevent the shell from
interpreting the * character.
-d dev Define dev as the device on which the software resides. dev
can be a full pathname to a directory or the identifiers for
tape, floppy disk, removable disk, and so on. Use the special
token ``spool'' to represent the default installation spool
directory.
NOTESpkginfo cannot tell if a pre-System V Release 4 package is only partially
installed. It is assumed that all pre-Release 4 packages are fully
installed.
Creating the file /var/inst/.nopkg will cause pkginfo to ignore the
inst(1M) database.
FILES
/var/inst/.nopkg
SEE ALSOinst(1M), pkgadd(1M), pkgask(1M), pkgchk(1M), pkgrm(1M), pkgtrans(1).
Page 2