Managing Software Patches 10/15/20151
Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files and directories that prevent proper execution of the software Some patches contain product enhancements 10/15/20152
Solaris OE Patch types: Standard patches Patches that fix specific problems Recommended patches Solaris OE patches that fix problems that might occur on a large percentage of systems Y2K patches Patches that ensure compliance of Sun Products with the year /15/20153
Patch clusters A group of standard, recommended, security, or Y2K packages that have been bundled into a single archive for easy downloading and installation Maintenance Update A set of patches that have been tested together and packaged for one-step installation 10/15/20154
A patch is distributed as a directory Identified by a unique number is the base code 01 is the revision number Patches are in zip format ( zip) 10/15/20155
Accessing Patch Documents World Wide Web Patch update CD-ROM Anonymous FTP Sunsolve.sun.com Located in the /pub/patches directory 10/15/20156
Patch Documents and Files Solaris9.PatchReport A summary of all patches for the Solaris 9 OE release 9_Recommended.README Instructions for how to install the recommended patch cluster for the Solaris 9 OE, as well as any important notes or warnings, special installation instructions, and usually a note to reboot the system 10/15/20157
Checking Patch Levels Before installing OE patches, you should know about patches that have been previously installed on a system “# showrev -p” “# patchadd -p” Historical information about all patches that are currently installed on a system and that can be uninstalled is stored in the “/var/sadm/patch” directory 10/15/20158
Preparing patches for installation Download the patches to the local system and place it in “/var/tmp” directory (open to all directory) Solaris 7,8,9 OE patches are in.zip format, unzip to unpack the patch files “# /usr/bin/unzip zip” Earlier versions user compressed tar file in a “tar.z” format, for uncompressing “zcat” command is used 10/15/20159
Installing a Patch When a patch is installed “patchadd” command calls the “pkgadd” command to install the patch packages “# cd /var/tmp” “# patchadd ” “# patchadd -d ” - will not save copies of file being updated or replace 10/15/201510
Removing a Patch When removing a patch, the “patchrm” command restores all files that were modified or replaced by that patch, unless: The patch is required by another patch The patch has been obsoleted by a later patch The patch was installed with the “patchadd -d” option 10/15/201511
“# patchrm ” 10/15/201512
Installing Patch Clusters Be sure the patch cluster has been unzipped or uncompressed and extracted Decide on which method to use to install the cluster - the recommended default save option or the “-nosave” option Change to the directory that contains the patch cluster “# cd patch_cluster_directory” “#./install_cluster 10/15/201513