Adding and Removing Packages in Solaris SPARC and x86
Adding and Removing Packages in Solaris SPARC and x86
Add Packages With pkgadd
Log in to the system and become superuser:
# su
Insert the CD that contains the software you want to add to the system into the CD-ROM drive attached to the system. in this scenario we use Solaris10 Update13If you want mount the ISO images then, follow these procedures.
Volume Manager automatically mounts the CD. Note the directory path to the software on the CD 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 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, SUNWrsync.
When you're done, use the pkgchk 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 SUNWrsync package from a mounted Solaris 10 update 3 Software 1 of 2 CD.
# /usr/sbin/pkgadd -d /cdrom/sol_10_sparc/Solaris_10/Product SUNWrsync
.Installation of <SUNWrsync> was successful.
# pkgchk -v SUNWrsync
x86: Example: Installing Software From a Mounted CD
The following example shows how to use pkgadd to install the SUNWrsync package from a mounted Solaris 10 update 3 Software 1 of 2 CD.
# /usr/sbin/pkgadd -d /cdrom/sol_10_sparc/Solaris_10/Product SUNWrsync
.
.
Installation of <SUNWrsync> was successful.
# pkgchk -v SUNWrsync
#
To Remove Packages With pkgrm
Log in to the installed or updated system and become superuser:# su
# /usr/sbin/pkgrm pkgid
Where pkgid is the name of the software package you want to remove from the installed system. For example, SUNWrsync.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 command to verify that the package was removed correctly:
# /usr/sbin/pkgchk -v pkgid
SPARC: Example: Removing Software From a System
The following example shows how to use pkgrm to remove the SUNWrsync package from a system.
# /usr/sbin/pkgrm SUNWrsync
The following package is currently installed:
SUNWrsync ..
Do you want to remove this package? y
.
.
.
Removal of <SUNWrsync> was successful.
The following package is currently installed:
SUNWrsync ..
Do you want to remove this package? y
.
.
.
Removal of <SUNWrsync> was successful.
# pkgchk -v SUNWrsync
WARNING: no pathnames were associated with <SUNWrsync>
#
x86: Example: Removing Software From a SystemWARNING: no pathnames were associated with <SUNWrsync>
#
The following example shows how to use pkgrm to remove the SUNWrsync package from a system.
# /usr/sbin/pkgrm SUNWrsync
The following package is currently installed:
SUNWrsync ..
Do you want to remove this package? y
.
.
.
Removal of <SUNWrsync> was successful.
# pkgchk -v SUNWrsync
WARNING: no pathnames were associated with <SUNWrsync>
#
No comments