Patch Management User Guide for HP-UX 11.x Systems (5900-3011, March 2013)
• -x patch_match_target=true
Selects for installation only those patches that correspond to products installed on the target
system.
• software_selections
Specifies the software to be installed. If you use the -x patch_match_target=true option,
you do not need to specify a software selection.
To install multiple products to the target depot with one command, replace
software_selections with a wildcard. For example:
◦ \* selects everything from the source depot.
◦ \*,c=patch selects all patches from the source depot.
◦ PHXX_12345 selects patch PHXX_12345 from the source depot.
• @ target_selections
Specifies the system on which the specified software is to be installed. Use this optional
argument if the target system is not the local system.
CAUTION: Before you install any patches, you should back up your system.
On the previous page, the swinstall command with the arguments includes the
autoreboot=true argument. If the Automatic Reboot field of a patch's patch details page or in
the patch text file is set to true when you use the swinstall command to install patches then
the target system will automatically reboot.
A brief warning is given just prior to system reboot, but the system goes down immediately after
the warning is issued. Therefore, it is very important that, prior to installing any patches that require
a system reboot, you follow your company's policy regarding a system reboot.
For information, see the Software Distributor Administration Guide on the HP Business Support
Center website at http://www.hp.com/go/sd-docs and the swinstall(1M) manpage.
Examples of installing patches from a depot
To install all applicable patches in the directory depot /my_depots/depot on the local system,
use this command:
For example:
$ swinstall -s /my_depots/depot \
-x autoreboot=true -x patch_match_target=true
======= 05/03/04 14:07:16 MDT BEGIN swinstall SESSION
(non-interactive) (jobid=my_system-0856)
* Session started for user "some_user@my_system".
* Beginning Selection
* Target connection succeeded for "my_system:/".
* Source connection succeeded for "my_system:/my_depots/depot".
* Source: /my_depots/depot
* Targets: my_system:/
* Software selections:
PHSS_30501.AGRM,l=/,r=B.11.11.22,
a=HP-UX_B.11.11_32/64,v=HP,fr=B.11.11.22,
fa=HP-UX_B.11.11_32/64
...
PHSS_30501.XEXT-RECORD,l=/,r=B.11.11.22,
a=HP-UX_B.11.11_32/64,v=HP,
Installing patches from a depot 81