Log in to the installed or updated system and become superuser:
# su |
Insert the DVD or the CD that contains the software you want to add.
Volume Manager automatically mounts the disc.
Note the directory path to the software that you want to add.
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. |
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.
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 # |
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 # |
Log in to the installed or updated system and become superuser:
# su |
Remove one or more packages from the system:
# /usr/sbin/pkgrm pkgid |
Where pkgid is the name of the software package you want to remove from the installed system. For example, SUNWaudio.
At each prompt, type y, n, or q to specify that you want to remove the package, not remove the package, or quit.
When you're done, use the pkgchk(1M) command to verify that the package was removed correctly:
# /usr/sbin/pkgchk -v pkgid |
If the package was not removed correctly, pkgchk returns a warning message.
The following example shows how to use pkgrm to remove the SUNWaudio package from a system.
# /usr/sbin/pkgrm SUNWaudio The following package is currently installed: SUNWaudio Audio applications (SPARC) 3.6.20,REV=1.2000.11.7 Do you want to remove this package? y . . . Removal of <SUNWaudio> was successful. # pkgchk -v SUNWaudio WARNING: no pathnames were associated with <SUNWaudio> # |
The following example shows how to use pkgrm to remove the SUNWaudio package from a system.
# /usr/sbin/pkgrm SUNWaudio The following package is currently installed: SUNWaudio Audio applications (i386) 3.6.20,REV=1.2000.11.7 Do you want to remove this package? y . . . Removal of <SUNWaudio> was successful. # pkgchk -v SUNWaudio WARNING: no pathnames were associated with <SUNWaudio> # |