How to Display Information About Installed Solaris Patches
Use the patchadd -p command to display information about patches installed on your system.
$ patchadd -p
Use the following command to verify whether a specific patch is installed on your system.
$ patchadd -p | grep 111879
Adding a Solaris Patch
Use the patchadd command to add patches to servers or standalone systems. If you need to add a patch to a diskless client system, see "Patching Diskless Client OS Services".
Determines the Solaris version number of the managing host and the target host
Updates the patch package's pkginfo file with information about patches obsoleted by the patch being installed, other patches required by this patch, and patches incompatible with this patch
The patchadd command will not install a patch under the following conditions:
The package is not fully installed on the host
The patch packages architecture differs from the system's architecture
The patch packages version does not match the installed package's version
There is already an installed patch with the same base code and a higher version number
The patch is incompatible with another, already installed patch. (Each installed patch keeps this information in its pkginfo file)
The patch being installed requires another patch that is not installed
How to Add a Solaris Patch
This procedure assumes that you have already pulled the patch from one of the sites listed in "Accessing Solaris Patches".
Review the information in the patch README file, typically called patch-id.README.
Add the patch.
# patchadd /patch-dir/patch-ID-revision
Verify that the patch is added.
# patchadd -p | grep patch-ID-revision
Example--Adding a Solaris Patch
The following example adds the Solaris 8 patch, 111879-01.
# patchadd /export/Sol8patch/111879-01 Checking installed patches... Verifying sufficient filesystem capacity (dry run method)... Installing patch packages... Patch number 111879-01 has been successfully installed. See /var/sadm/patch/111879-01/log for details Patch packages installed: SUNWwsr # patchadd -p | grep 111879-01 Patch: 111879-01 Obsoletes: Requires: Incompatibles: Packages: SUNWwsr
How to Download and Add a Solaris Patch From SunSolve
(Optional) Log in to the system where the patch will be applied.
Or, you can download the patch and use the ftp command to copy the patch to the target system.
Go to the SunSolve patch site using a Web browser:
Determine if you are going to download a recommended a specific patch or patch cluster. Then select one of the following:
Enter the patch number (patch-ID) in the "Find Patch" search field and click on Find Patch.
Entering patch-ID downloads the latest patch revision.
If this is a freely available patch, the patch README is displayed. If this is not a freely available patch, an ACCESS DENIED message is displayed.
There are different patch numbers for SPARC and IA systems, which are listed in the displayed patch README. Make sure you install the patch that matches your system architecture.
Click on a recommended patch cluster based on the Solaris release running on the system to be patched.
Click on the Download HTTP or FTP button.
After the patch (or patches) are download successfully, you can close the Web browser.
Change to the directory that contains the downloaded patch package, if necessary.
Unzip the patch package.
% unzip patch-ID-revision
Add the patch or patches.
# patchadd patch-ID-revision
Removing a Solaris Patch
When you back out a patch, the patchrm command restores all files modified by that patch, unless:
The patch was installed with patchadd -d (which instructs patchadd not to save copies of files being updated or replaced)
The patch has been obsoleted by a later patch
The patch is required by another patch
The patchrm command calls pkgadd to restore packages that were saved from the initial patch installation.
During the patch removal process, patchrm keeps a log of the back out process in /tmp/backoutlog.process_id. This log file is removed if the patch backs out successfully.