by Ras
12. April 2012 17:01
### Patch management
1. Register the system with Sun in order to use update manager and others e.g. Sun update connection.
Note: Registration without subscription key limits updates to the following
a. security updates for software
b. applicable hardware updates(firmware)
c. Sun update connection feature will not be available
2. Run updatemanager to update
3. Select required available patches and install
Note: patches will be downloaded in /var/sadm/spool
4. You can see installed patches on update manager
http://sunsolve.sun.com is the official Sun patch site and you can download the patches manually from it
## Sun Patch Framework
1- Sun update conneciton, system edition - Framework
- Sun update Manager - updatemanager - GUI
- smpatch - CLI of update manager
- Sun update web application - Web portal hosted by sun.com - faciliates the management of patches for 1 or more systems
- Sun Update Conneciton proxy - creates a local patch server
2- patchadd/patchrm - apply patch manually from sunsolve.sun.com
3- Solaris management console (SMC)
### smpatch
smpatch analyze - will analyze the patches and return the patches and ids
smpatch update - download/apply ALL updates based on analysis
smpatch analyze -x idlist=patch_list.txt - will read all availale patches from the txt file
smpatch analyze -i patch_id1 -i patch_id2 -i patch_id3 - this will anayze the patch_ids
smpatch download -i patch_id - will download the patch to /var/sadm/spool (not isntall)
smpatch download -x idlist-patch_list.txt - download patches from the txt file
smpatch add -i patch_id - add the patch to the system
smpatch get - will show the smpatch options
## patchadd
patchadd patch_directory - you need to unzip the patch and give the patchadd the directory address to intall
patchadd -p - will print the installed patches
patchrm patch_id - removes the patch