Gérer ses updates avec Update Manager et smpatch
As I love Debian and some of my servers I running on Solaris, I had to get in touch with Solaris update solutions. They've got a GUI called Solaris Update Manager and the CLI version called smpatch. Unfortunatly
As it is on servers, I don't have a graphical interface and I need to run updates with command lines. That's what I specially talk about in this documentation. List of interesting binaries :
- pprosetup : Used to set the rules for downloading and applying patches.
- pprosvc : The automation service program for Patch Manager.
- smpatch : Used to actually download, apply, and remove the patches specified on the command line.
2 Update Manager
Just to give you a quick idea, when you have a graphical interface, it looks like this :
I won't explain how does it works as it is very simple.
smpatch is the command line version of Update Manager.
3.1.1 Set proxy settings
smpatch set patchpro.proxy.host=fqdn_of_proxy_host smpatch set patchpro.proxy.port=proxy_port smpatch set patchpro.proxy.user=proxy_username_if_needed
Now set password by prompt :
smpatch set patchpro.proxy.passwd
3.1.2 Configuration files
Here are the configuration files :
- System defaults:
- PatchPro defaults:
- SunSolve Account Options
The analyze will check what is needed to be updated on your server :
Now you want to upgrade. You have 2 choices :
- Automatic update : will check what is needed and will upgrade your system as well
- Manual update : you'll need to download them and install them afterward
The automatic update will do everythings by it's own (download + install) :
$ smpatch update 122213-34 has been validated. 119901-09 has been validated. 142293-01 has been validated. 141445-09 has been validated. 141031-05 has been validated. ...
That's all. It will told you if it's necessary to reboot or not.
For the manual upgrade, you'll need first to download updates :
$ smpatch download 125534-15 has been validated. 126364-08 has been validated. ...
And then install them :
$ smpatch add
3.3.3 Default storage location
By default, updates are stocked in this folder /var/sadm/spool/. Updates are in .jar format :