Information Technology Reference
In-Depth Information
To install a package located on CD-ROM, you use the -d command-line
argument to specify the pathname to the CD-ROM drive. For example, you
can use the pkgadd command to install SUNWzipS from a CD-ROM
mounted at /cdrom/cdrom0 .
pkgadd -d /cdrom/cdrom0/SUNWzipS
Actually, the pkgadd command does not require the name of a package. If no
package name is specified, the pkgadd command will prompt you with a list
of packages available in the specified spool directory or on the CD-ROM.
The -s command-line argument is used to spool a package into a spool
directory instead of installing it. The following command will spool the
SUNWzipS package in from the second CD-ROM of the Solaris
Distribution to the /var/spool/pkg directory.
# pkgadd -s /var/spool/pkg -d /cdrom/sol_9_sparc_2/Solaris_9/Product
SUNWzipS
Transferring <SUNWzipS> package instance
#
If you're using the default spool directory, you can simply specify the phrase
spool with the -s command-line argument.
Obtaining Package Information Using the pkginfo Command
The pkginfo command with no command-line arguments displays a list of
installed packages. The following example shows a partial listing of installed
packages:
# pkginfo
system IPLTadcon Administration Server Console
system IPLTadman Administration Server Documentation
system IPLTadmin Administration Server
system IPLTcons Console Client Base
system IPLTdscon Directory Server Console
.
.
.
system SUNWzip The Info-Zip (zip) compression utility
system SUNWzipS Source for the Info-Zip
system SUNWzlib The Zip compression library
system SUNWzlibx The Zip compression library (64-bit)
system SUNWzsh Z shell (zsh)
#
Each software package includes a file named pkginfo that contains various
information about the package. It is also used to store information generat-
ed during and after installation, such as installation date and a list of any
patches applied to the package. To view the contents of the pkginfo file for
a particular package, use the pkginfo command and specify the -l command-
line argument along with the name of the package. For example, to display
Search WWH ::




Custom Search