Software Distributor Administration Guide for HP-UX 11i

Managing Patches
Patch Management Tasks and Examples
Chapter 5172
If more than one patch for a base fileset exists, only the latest
patches (i.e., those that are not superseded) will be automatically
selected for installation, unless overridden by an explicit patch
selection.
You can also explicitly specify patches on the command line. See
“Explicitly Specifying Patches” on page 173 for more information.
The following examples demonstrate the use of patch options on the
command line. (Note that the autoselect_patches option is true by
default.)
The example below shows the default behavior for patch installation. All
patches in the depot that apply to the software being installed (in this
case, X11) are selected by default:
swinstall -s sw_server X11
To select all applicable patches that include the category_tag of
critical_patch and install them along with the selected software:
swinstall -s sw_server \
-x patch_filter=”*.*,c=critical_patch” X11
The following example installs a product and an explicitly specified
patch.
swinstall -s sw_server \
-x autoselect_patches=false X11 PHSS_12345
Installing Patches After Base Product Installation
When you want to install patches after installation of the base product,
you can select the patches explicitly or by matching the installed
software using the patch_match_target option, which automatically
selects the latest patches for the software found on the target.
To select all patches in the depot that correspond to currently installed
software:
swinstall -s sw_server -x patch_match_target=true
To select all patches in the depot that correspond to currently installed
software and that contain the category_tag critical_patch:
swinstall -s sw_server -x patch_match_target=true \
-x patch_filter=” *.*,c=critical_patch”