HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

u
update-ux(1M) update-ux(1M)
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
,enter:
/usr/sbin/update-ux -s /dvd HPUX11i-OE
The example above updates the HP-UX 11i Operating Environment (OE).
To install all bundles and products in sw_server that match and update software that is installed on the sys-
tem:
/usr/sbin/update-ux -s sw_server:/depot/oes
Which is equivalent to:
/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-OE that matches the software on the target system:
/usr/sbin/update-ux -s sw_server:/depot/OE HPUX11i-OE/%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-OE and include the HP-UX Bastille Security Configuration bundle:
/usr/sbin/update-ux -s /dvdrom HPUX11i-OE 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 MCOE:
/usr/sbin/update-ux -s sw_server:/depot/oes HPUX11i-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-OE except for Perl, which is part of HPUX11i-OE, you could specify the following:
/usr/sbin/update-ux -s /depot/OE HPUX11i-OE !Perl
The only exception to this is if the selection is in the Operating Environment’s required contents list,
in which case it cannot be deselected without deselecting all of the Operating Environment. Note that
deselections have precedence over selections. Thus the order is not important. The example above
would be the same as the following command:
574 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007