Gérer ses updates avec Update Manager et smpatch
Contents
1 Introduction
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.
3 smpatch
smpatch is the command line version of Update Manager.
3.1 Configuration
3.1.1 Set proxy settings
3.1.2 Configuration files
Here are the configuration files :
- System defaults:
- /var/sadm/install/admin/default
- PatchPro defaults:
- /etc/opt/SUNWppro/etc/patchpro.conf
- /opt/SUNWppro/lib/.proxypw
- SunSolve Account Options
- /etc/patch/patch.conf
- /etc/patch/secret.conf
3.2 Analyze
The analyze will check what is needed to be updated on your server :
3.3 Upgrade
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
3.3.1 Automatic
The automatic update will do everythings by it's own (download + install) :
smpatch |
$ 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.
3.3.2 Manual
For the manual upgrade, you'll need first to download updates :
smpatch |
$ smpatch download 125534-15 has been validated. 126364-08 has been validated. ... |
And then install them :
smpatch |
$ smpatch add |
3.3.3 Default storage location
By default, updates are stocked in this folder /var/sadm/spool/. Updates are in .jar format :
4 References
http://www.cuddletech.com/blog/pivot/entry.php?id=579
http://docs.huihoo.com/opensolaris/system-administration-guide-basic-administration/html/ch22s06.html
http://bob.vancleef.org/index.php?name=News&file=article&sid=56
http://www.sun.com/service/sunupdate/flash_content.html