The pkginfo command displays software package information.
Synopsis
pkginfo [-q] [-pi] [-x|l] [options] [pkg ...]
pkginfo -d device [-q] [-x|l] [options] [pkg ...]
Description
The pkginfo command displays information about software packages installed on the system (with the first synopsis), or that reside on a particular device or directory (with the second synopsis).
The pkginst command designates a package by its instance. An instance can be the package abbreviation or a specific instance (for example, inst.1 or inst.beta). All instances of package can be requested by inst.*.
Without options, the pkginfo command lists the primary category, package instance, and the names of all completely installed and partially installed packages. It displays one line for each package selected.
The parameters for the pkginfo command are described in the following table:
Parameter |
Description |
Comments |
-a |
Specify the architecture of the package as arch |
|
-c |
Display packages that match the category |
If more than one category is supplied, the package must match only one category in the list. The match is not case specific. |
-d |
Defines a device on which the software resides |
Device can be an absolute directory pathname or the identifiers peripherals. The special token spool may be used to indicate the default installation spool directory ( /var/spool/pkg ). |
-i |
Display information for fully installed packages only |
The -p and -i options are meaningless if used in conjunction with the -d option |
-l |
Specify long format, which includes all available information about the designated packages |
|
-p |
Display information for partially installed packages only |
The -p and -i options are meaningless if used in conjunction with the -d option. |
-q |
Do not list any information |
Used from a program to check whether or not a package has been installed |
-r |
List the installation base for relocatable packages |
|
-v |
Specify the version of the package as version |
All compatible versions can be requested by preceding the version name with a tilde (~). Multiple white spaces are replaced with a single white space during version comparison. |
-x |
Designate an extracted listing of package information |
The listing contains the package abbreviation, package name, package architecture (if available), and package version (if available) |
Note:
The options -q, -x, and -l are mutually exclusive.
See also