The pkginfo command shows information on software packages which are installed in POSIX. A software package installed in POSIX is defined by:
the name of the software product
the package from the software product (optional)
the version of the software product
the path under which the software product is installed (default: /)
the BS2000 library (SINLIB) from which the software product was installed
the date of the (last) installation.
Syntax
pkginfo[ -l|-q][[ -v version][ -P package][ -I ipath] product] |
No option specified An overview of all the installed software packages is output, see example 1. options
(l - long) Detailed outputs
(q - quiet) No outputs; only the exit status is set
Only product(s) of the specified version are displayed
Only the specified package of a product is displayed
Only products with the specified installation path are displayed |
Exit status
0 | Installed product(s) complying with the specifications have been found | |
1 | No installed product complying with the specifications has been found | |
>1 | Errors |
Error
The /var/sadm/pkg/instlog file cannot be read or does not match the expected format. Errors reported by the runtime system (CRTE). |
File
/var/sadm/pkg/instlog Log file of the POSIX package installations |
Hint
The pkginfo command always outputs the information in English, regardless of the language set. This avoids problems which could otherwise occur during the analysis of outputs in shell scripts. The names of the software product and package can be entered in upper or lower case. |
Example 1
Outputting an overview of all the software packages installed:
|
Example 2
Outputting details of all packages of a software product:
|
Example 3
Outputting details of a particular package of a software product:
|
Example 4
Checking the installation of particular versions of a software product:
|