HP-UX HB v13.00 Ch-05 - SD-UX

HP-UX Handbook Rev 13.00 Page 22 (of 49)
Chapter 05 Software Distributor (SD-UX)
October 29, 2013
subsequent patching or system updates and leave your system
in an unsupportable state.
NOTE: You may choose the cleanup utility as a front-end to the patch_commit option of
swmodify that provides an easier interface to commit multiple patches at once.
Synopsis
swmodify [-d|-r] [-p] [-u] [-v] [-V] [-a attribute =[value ]] [-c catalog ] [-C session_file ]
[-f software_file ] [-P pathname_file ] [-s product_specification_file| [-S session_file ]
[-x option=value ] [-X option_file ] [software_selections] [@ target_selection]
Command Line Arguments
-a
attribute[=value]
Add, modify, or delete the value of the given attribute. If the -u option is specified,
then delete the attribute from the given software_selections (or delete the
value from the set of values currently defined for the attribute). Otherwise
add/modify the attribute for each software_selection by setting it to the
given value. Multiple -a options can be specified. Each attribute modification will
be applied to every software_selection.
-d
Perform modifications on a depot. The given target must be a depot.
-p
Previews the modify operation without modifying anything. Preview mode is not
enabled by default.
-v
Requests verbose mode. This option affects only standard output and not the log files.
-x option=value
Sets the specified command option to the value given, overriding any other values for
that option. Patch related command options are specified below.
s/w_selections
One or more software specifications.
target
The depot to be modified. If not specified, the target is assumed to be the system
itself.
The following options have the most relevancy to patching. Where appropriate, default values
are shown. For the full set of available options, consult the swmodify(1m) man page or refer to
the Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3.
Options
option=default value
Description
patch_commit=false
Commits a patch by removing files saved for patch rollback. The default value is false. When set to true, this
option removes the saved files for the patches specified in the software selections for the command. Once you
have run this option on a patch, you cannot remove the patch unless you remove the associated base software
that the patch modified.
See also the cleanup utility described below.
Examples