Application Packaging Developer's Guide

How to Obtain Information With the pkgparam Command

  1. Install your package.

    See "How to Install a Package on a Standalone or Server" or "How to Add a Package to a Diskless or AutoClient System's Root File System", if needed.

  2. Display additional information about your package.


    # pkgparam [-v] pkg-abbrev [param...]

    -v

    Displays the name of the parameter and its value. 

    pkg-abbrev

    Is the name of a specific package. 

    param

    Specifies one or more parameters whose value is displayed. 

Where to Go Next

If you are ready to go to the next task, see "How to Remove a Package" or "How to Remove a Package From a Diskless or AutoClient System".

Example--Obtaining Information With the pkgparam Command

For example, to display values only, use this command.


$ pkgparam SUNWcadap
none
/opt
US/Mountain
/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
/usr/sadm/sysadm
SUNWcadap
Chip designers need CAD application software to design abc
chips.  Runs only on xyz hardware and is installed in the usr
partition.
system
release 1.0
SPARC
venus980706083849
SUNWcadap
/var/sadm/pkg/SUNWcadap/save
Jul 7 1998 09:58
$

To display parameters and their values, use the following command.


$ pkgparam -v SUNWcadap
pkgparam -v SUNWcadap
CLASSES='none'
BASEDIR='/opt'
TZ='US/Mountain'
PATH='/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin'
OAMBASE='/usr/sadm/sysadm'
PKG='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'
VERSION='release 1.0'
ARCH='SPARC'
PSTAMP='venus980706083849'
PKGINST='SUNWcadap'
PKGSAV='/var/sadm/pkg/SUNWcadap/save'
INSTDATE='Jul 7 1998 09:58'
$

Or, if you want to display the value of a specific parameter, use this format:


$ pkgparam SUNWcadap BASEDIR
/opt
$

For more information, refer to the pkgparam(1) man page.