Back to the main page
The command smpatch
The smpatch is great toor for analyze/download/apply/remove Solaris patches (has so many features so check man page).
But in order to use it, you'll have to register with Sun (so ask your company to get Sun Online Account :)
I remember once, Sunsolve web site was kind of down and I couldn't get patches,
but 'smpatch' worked fine and I didn't waste time waiting for Sunsolve site to start working.
Let's say you are using 'smpatch' without having a system registered with Sun. The outcome is below.
# smpatch analyze
Failure: Cannot connect to retrieve detectors.jar:
This system is currently unregistered and is unable to retrieve patches from the Sun Update Connection.
Please register your system using the Update Manager,
/usr/bin/updatemanager or provide valid Sun Online Account(SOA) credentials.
So feel free to use my script and register the system with Sun.
Run the scipt: sh host_registration.sh
Now enjoy 'smpatch' command. Below are some examples/tips, please check man page.
Back to the main page
- Get smpath working environment: smpatch get
- patchpro.backout.directory - ""
- patchpro.baseline.directory - /var/sadm/spool
- patchpro.download.directory - /var/sadm/spool
- patchpro.install.types - rebootafter:reconfigafter:standard
- patchpro.patch.source - https://getupdates1.sun.com/
- patchpro.patchset - current2
- patchpro.proxy.host - ""
- patchpro.proxy.passwd **** ****
- patchpro.proxy.port - 8080
- patchpro.proxy.user - ""
- Download the patch you need: smpatch download -i 141740-01
- If you want to download more patches at once, put them in the file, after each patch_id must be new line.
- smpatch download -f -x idlist=/var/sadm/spool/patches.txt
- -f = force exact patch revision
- Put full file path as 'idlist'
- Patches are downloaded (in /var/sadm/spool) as .JAR archive, but no need to unzip it
- After installation, a patch will be stored in /var/sadm/patch directory
- Note: Always read about patch to see how to install - maybe need reboot after, or install in single user mode
- Install the patch smpatch add -i 141740-01
- Get list of patches you need for a system: smpatch analyze