update-ux.1m (2011 09)
u
update-ux(1M) update-ux(1M)
[,r <op> revision][,a <op> arch
][,v <op> vendor]
[,c <op> category][,q=qualifier
][,l=location]
[,fr <op> revision][,fa <op> arch
]
Where op can be:
=, ==, >=, <=
, <, >,or!=
The = (equals) relational operator lets you specify selections with the shell wildcard and pattern-
matching-expressions:
[], *, ?
The syntax !selection causes that selection to be deselected even if it was listed on the command line as
part of other selections.
RETURN VALUE
The
update-ux command returns a value when it is not successful:
1 Error during execution; update aborted.
DIAGNOSTICS
Standard Output:
An
update-ux session writes messages for significant events, including:
• Begin-session and end-session messages.
• Major task messages.
Logging:
Errors are recorded in:
/var/adm/sw/update-ux.log
and /var/adm/swm/swm.log.
EXAMPLES
To update from the OE depot on an HP-UX 11i OE DVD mounted at
/dvd, automatically choosing an OE
similar to the OE on the system, enter:
/usr/sbin/update-ux -s /dvd
The example above is the recommended method for updating HP-UX. It chooses an OE similar to
the OE on the target, selects all Required and Recommended contents of the chosen OE, selects
Optional contents of the chosen OE that matches what is already on the system, and performs the
OE update.
To install all bundles and products in sw_server that match and update software that is installed on the
system:
/usr/sbin/update-ux -s sw_server:/depot/OEs /%match
The syntax /%match selects all software in the source that matches what is already installed on the
system.
To select only software in HPUX11i-BOE (Base Operating Environment) that matches the software on the
target system:
/usr/sbin/update-ux -s sw_server:/depot/OE HPUX11i-BOE/%match
The syntax bundle /%match selects only software in the specified bundle that matches what is
already installed on the system.
To update to HPUX11i-BOE and include the HP-UX Bastille Security Configuration bundle:
/usr/sbin/update-ux -s /dvdrom HPUX11i-BOE Sec30DMZ
To interactively select software for an update, use the -i option:
/usr/sbin/update-ux -s sw_server:/depot/OEs -i
To update the operating environment (OE), explicitly to the DC-OE (Data Center OE):
/usr/sbin/update-ux -s sw_server:/depot/oes HPUX11i-DC-OE
To update all the software that is part of the OE except Mozilla:
/usr/sbin/update-ux -s /var/spool/sw !MOZILLA
To select all of HPUX11i-BOE except for Perl, which is part of HPUX11i-BOE, you could specify the fol-
lowing:
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2011