Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

pkginfo - show information on software packages in POSIX

&pagelevel(4)&pagelevel

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

(l - long)

Detailed outputs

-q

(q - quiet)

No outputs; only the exit status is set

-v version

Only product(s) of the specified version are displayed

-P package

Only the specified package of a product is displayed

-I ipath

Only products with the specified installation path are displayed

Exit status

0Installed product(s) complying with the specifications have been found
1No installed product complying with the specifications has been found
>1Errors

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:

$ pkginfo
PRODUCT PACKAGE VERSION INSTALLATION-PATH
POSIX-BC - 080 /
POSIX-SH - 070 /
NFS - 030 /
POSIX-NSL - 070 /
POSIX-SOCKETS - 070 /
CRTE - 028 /
IMON-BAS - 031 /
POSIX-HEADER - 018 /
TCP-IP-SV PRNGD 031 /opt/TCP-IP-SV/prngd
TCP-IP-SV OPENSSH 031 /opt/TCP-IP-
SV/openssh
SYMAPI - 066 /opt/emc
SBA-BS2 - 062 /
SCCA-BS2 - 020 /opt/emc/sccabs2
$

Example 2

Outputting details of all packages of a software product:

$ pkginfo -l tcp-ip-sv
PRODUCT NAME : TCP-IP-SV
PRODUCT PACKAGE : PRNGD
PRODUCT VERSION : 031
INSTALLATION PATH : /opt/TCP-IP-SV/prngd
INSTALLATION LIBRARY : $TSOS.SINLIB.TCP-IP-SV.031.PRNGD
INSTALLATION DATE : Fri Oct 10 08:08:56 2008
PRODUCT NAME : TCP-IP-SV
PRODUCT PACKAGE : OPENSSH
PRODUCT VERSION : 031
INSTALLATION PATH : /opt/TCP-IP-SV/openssh
INSTALLATION LIBRARY : $TSOS.SINLIB.TCP-IP-SV.031.OPENSSH
INSTALLATION DATE : Fri Oct 10 08:06:08 2008
$

Example 3

Outputting details of a particular package of a software product:

$ pkginfo -l -P openssh tcp-ip-sv
PRODUCT NAME : TCP-IP-SV
PRODUCT PACKAGE : OPENSSH
PRODUCT VERSION : 031
INSTALLATION PATH : /opt/TCP-IP-SV/openssh
INSTALLATION LIBRARY : $TSOS.SINLIB.TCP-IP-SV.031.OPENSSH
INSTALLATION DATE : Fri Oct 10 08:06:08 2008
$

Example 4

Checking the installation of particular versions of a software product:

$ pkginfo -q -v 027 crte && echo "INSTALLED." || echo "NOT INSTALLED."
NOT INSTALLED.
$ pkginfo -q -v 028 crte && echo "INSTALLED." || echo "NOT INSTALLED."
INSTALLED.
$