Solaris 8 Advanced Installation Guide

To Add Packages With pkgadd

  1. Log in to the installed or updated system and become superuser:


    # su
    
  2. Insert the DVD or the CD that contains the software you want to add.

    Volume Manager automatically mounts the disc.

  3. Note the directory path to the software that you want to add.

  4. Add one or more packages to the system:


    # /usr/sbin/pkgadd -d device_name pkgid
    

    where:

    device_name

    Is the directory path to the DVD or CD that contains the software you want to add to the installed system. 

    pkgid

    Is the name of the software package to be added to the installed system. For example, SUNWaudio.

  5. When you are finished, use the pkgchk(1M) command to verify that the package is installed correctly:


    # /usr/sbin/pkgchk -v pkgid
    

    If no errors are found, pkgchk returns a list of installed files. If an error is found, pkgchk returns a message that describes the problem.

SPARC: Example: Installing Software From a Mounted CD

The following example shows how to use pkgadd to install the SUNWaudio package from a mounted Solaris 8 Software 1 of 2 CD.


# /usr/sbin/pkgadd -d /cdrom/sol_8_sparc/Solaris_8/Product SUNWaudio
.
Installation of <SUNWaudio> was successful. 
# pkgchk -v SUNWaudio
/usr
/usr/bin
/usr/bin/audioconvert
/usr/bin/audioplay
/usr/bin/audiorecord
#

x86: Example: Installing Software From a Mounted CD

The following example shows how to use pkgadd to install the SUNWaudio package from a mounted Solaris 8 Software 1 of 2 CD.


# /usr/sbin/pkgadd -d /cdrom/sol_8_ia/Solaris_8/Product SUNWaudio
.
.
Installation of <SUNWaudio> was successful. 
# pkgchk -v SUNWaudio
/usr
/usr/bin
/usr/bin/audioconvert
/usr/bin/audioplay
/usr/bin/audiorecord
#