Application Packaging Developer's Guide

The pkginfo Command

You can display information about installed packages with the pkginfo command. This command has several options that enable you to customize both the format and the contents of the display.

You can request information about any number of package instances.

The Default pkginfo Display

When the pkginfo command is executed without options, it displays the category, package instance, and package name of all packages that have been completely installed on your system. The display is organized by categories as shown in the following example.

$ pkginfo
system      SUNWinst       Install Software
system      SUNWipc        Interprocess Communications
system      SUNWisolc      XSH4 conversion for ISO Latin character sets
application SUNWkcspf      KCMS Optional Profiles
application SUNWkcspg      KCMS Programmers Environment
application SUNWkcsrt      KCMS Runtime Environment

Customizing the Format of the pkginfo Display

You can get a pkginfo display in any of three formats: short, extracted, and long.

The short format is the default. It shows only the category, package abbreviation, and full package name, as shown in "The Default pkginfo Display".

The extracted format shows the package abbreviation, package name, package architecture (if available), and package version (if available). Use the -x option to request the extracted format as shown in the next example.

$ pkginfo -x
SUNWipc         Interprocess Communications
                (sparc) 11.5.1,REV=
SUNWisolc       XSH4 conversion for ISO Latin character sets
                (sparc) 1.0,REV=5.0
SUNWkcspf       KCMS Optional Profiles
                (sparc) 1.0,REV=1.0.14
SUNWkcspg       KCMS Programmers Environment
                (sparc) 1.0,REV=1.0.1

Using the -l option produces a display in the long format showing all of the available information about a package, as in the following example.

$ pkginfo -l SUNWcadap
   PKGINST:  SUNWcadap
      NAME:  Chip designers need CAD application software to
design abc chips.  Runs only on xyz hardware and is installed
in the usr partition.
  CATEGORY:  system
      ARCH:  SPARC
   VERSION:  release 1.0
   BASEDIR:  /opt
    PSTAMP:  system980706083849
  INSTDATE:  Jul 7 1998 09:58
    STATUS:  completely installed
     FILES:     13 installed pathnames
                 6 directories
                 3 executables
              3121 blocks used (approx)

Parameter Descriptions for the pkginfo Long Format

Table 4-2 describes the package parameters that can be displayed for each package. A parameter and its value are displayed only when the parameter has a value assigned to it.

Table 4-2 Package Parameters




The architecture supported by this package. 


The base directory in which the software package resides (shown if the package is relocatable). 


The software category, or categories, of which this package is a member (for example, system or application).


A list of classes defined for a package. The order of the list determines the order in which the classes are installed. Classes listed first will be installed first (on a media by media basis). This parameter may be modified by the request script.  


Text that describes the package. 


The electronic mail address for user inquiries. 


Information on how to receive hotline help about this package. 


Indicates that the package should only be installed interactively when set to any non-NULL value. 


A list of allowable run states for package installation (for example, S s 1).


The maximum number of package instances that should be allowed on a machine at the same time. By default, only one instance of a package is allowed. 


The package name, generally text describing the package abbreviation. 


A list of classes defining the order in which they should be put on the medium. Used by the pkgmk command in creating the package. Classes not defined in this parameter are placed on the medium using the standard ordering procedures.


Abbreviation for the package being installed. 


The production stamp for this package 


A list of allowable run states for package removal (for example, S s 1).


If set, this parameter is passed as an argument to the ulimit command, which establishes the maximum size of a file during installation. This applies only to files created by procedure scripts.


The name of the vendor who supplied the software package. 


The version of this package.  


The vendor-supplied stock number. 

For detailed information about the pkginfo command, refer to the pkginfo(1) man page.