What
Patching = updating packages that make up the OS image, usually via a new SRU level.
Solaris · Patch Management
Solaris · Lesson 23
Patching in Solaris 11 is done using IPS and SRU repositories. In this lesson you'll see what patches are, why we apply them, how base and SRU repos work, how publishers are configured, and how boot environments make patching safer.
In Solaris 11, patching is done via Image Packaging System (IPS) and Support Repository Updates (SRUs), not traditional patch numbers only. An SRU is a tested bundle of fixes released regularly by Oracle.
Patching = updating packages that make up the OS image, usually via a new SRU level.
Security fixes, bug fixes, new features, and staying within supported configurations.
Download SRU repo, configure publisher, run dry-run, then final pkg update into a new boot environment.
A publisher is the identity of a software source (e.g. solaris). It defines from where IPS fetches packages.
Use pkg publisher to view, pkg set-publisher and pkg unset-publisher to change origins and priorities.
You can use screenshots here to show the MOS flow: login, go to Patches & Updates, search for SRU ID, download zipped repo, verify checksum, etc.
If you have a custom ShowerHead component, you can move these images and title into that component and pass your Cloudinary URLs through props.
A Boot Environment (BE) is a ZFS clone of the root filesystem used at boot. When you run pkg update, Solaris automatically creates a new BE and patches that copy. This makes patching much safer.
These examples follow a typical offline patching flow using a local SRU repo downloaded from My Oracle Support.
Always capture current Solaris version, boot environments and IPS state before patching.
Downloaded SRU from MOS arrives as a single zip. Unzip it to see README and install-repo script.
The install-repo script uncompresses multiple zip parts and creates a local IPS repository directory.
Publishers tell IPS where to fetch packages from (Oracle network repo, local DVD, local SRU repo, etc.).
Use file:// URI pointing to local repo directory created by install-repo.ksh.
-n = no execute, -v = verbose. This shows plan (what will change) without applying.
--accept auto-accepts licenses. This will create a new boot environment and install SRU.
pkg update auto-creates a new BE. Old one is kept for rollback.
Use init 6 or reboot. On next boot, system uses the new activated BE.
Confirm new OS level, BE status, and IPS entire version after reboot.
After patching from local SRU, you may want to point solaris publisher back to network/base repo.
beadm activate <old_BE> and reboot.For detailed rollback and patch-issue scenarios, it's better to have a dedicated lesson (Patch Rollback & Troubleshooting) so that this page remains clean and linear.