|
| 以 PDF 格式下载本书 (1889 KB)
Chapter 24 Managing Solaris Patches (Tasks)Patch management involves listing or installing Solaris patches from a system running the Solaris release. Patch management might also involve removing (called backing out) unwanted or faulty patches. This is a list of the step-by-step instructions in this chapter. This is a list of the overview information in this chapter. For information on adding patches to diskless client systems, see Patching Diskless Client OS Services. What Is a Patch?A patch is a collection of files and directories that replace or update existing files and directories that are preventing proper execution of the software. The existing software is derived from a specified package format, which conforms to the Application Binary Interface. For details about packages, see Chapter 22, Managing Software (Overview). Tools for Managing Solaris PatchesThere are several options for managing patches:
Detailed information about how to install and back out a patch is provided in patchadd(1M) and patchrm(1M). Each patch also contains a README file that contains specific information about the patch. Before installing patches, you might want to know more about patches that have previously been installed. The following table describes commands that provide useful information about patches that are already installed on a system. Table 24–1 Commands for Solaris Patch Management
Solaris Patch DistributionAll Sun customers can access security patches and other recommended patches through the SunSolveTM program. The following table describes the various ways to access Solaris patches. Table 24–2 Customer Patch Access Information
Accessing Solaris PatchesYou can access Solaris patches from a web page or by using anonymous ftp. If you have purchased a Sun service contract, you will also be able to get patches directly from the SunSolve web page or from the patch CD-ROM that is regularly distributed. To access patches from a web page, you need a system that is:
To access patches by anonymous ftp, you need a machine that is:
Access patches from SunSolveTM by using the following URL:
You can either install a patch cluster of recommended patches or individual patches that are freely available. Patch reports are available also. You can also access publicly available patches by using this URL: http://www.ibiblio.org/pub/sun-info/sun-patches Solaris Patch NumberingPatches are identified by unique alphanumeric strings, with the patch base code first, a hyphen, and a number that represents the patch revision number. For example, patch 108528-10 is a SunOS 5.8 kernel update patch. How to Display Information About Installed Solaris PatchesUse the patchadd -p command to display information about patches installed on your system.
Use the following command to verify whether a specific patch is installed on your system.
Adding a Solaris PatchUse 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. When you add a patch, the patchadd command calls the pkgadd command to install the patch packages from the patch directory to a local system's disk. More specifically, the patchadd command:
During the patch installation, patchadd keeps a log of the patch installation in /var/sadm/patch/patch-number/log file for current Solaris versions. The patchadd command will not install a patch under the following conditions:
How to Add a Solaris PatchThis procedure assumes that you have already pulled the patch from one of the sites listed in Accessing Solaris Patches.
Example—Adding a Solaris PatchThe following example adds the Solaris 8 patch, 111879–01.
How to Download and Add a Solaris Patch From SunSolve
Removing a Solaris PatchWhen you back out a patch, the patchrm command restores all files modified by that patch, unless:
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. How to Remove a Solaris PatchUse this procedure if you need to remove a Solaris patch.
Example—Removing a Solaris PatchThe following example removes the Solaris 8 patch, 111879–01.
|
||||||||||||||||||||||||||