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

s
swmodify(1M) swmodify(1M)
-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.
The
-s and -a options are mutually exclusive; the
-s option cannot be specified when
the
-a option is specified.
-c catalog
Specifies the pathname of the catalog which will be added, modified, or used as input by
swmodify.
The -c and -a options are mutually exclusive, the
-c option cannot be specified when
the
-a option is specified.
-C session_file
Save the current options and operands to session_file. You can enter a relative or absolute
path with the file name. The default directory for session files is
$HOME/.sw/sessions/
. You can recall a session file with the -S option.
-f software_file
Read the list of software_selections from software_file instead of (or in addition to) the com-
mand line.
-P pathname_file
Specify a file containing the pathnames of files being added to or deleted from the IPD
instead of having to specify them individually on the command line.
-s product_specification_file
The source Product Specification File (PSF) describes the product, subproduct, fileset,
and/or file definitions which will be added, modified, or used as input by
swmodify.
The
-s and -u options are mutually exclusive, the -s option cannot be specified when
the -u option is specified.
-S session_file
Execute swmodify based on the options and operands saved from a previous session, as
defined in session_file. You can save session information to a file with the
-C option.
-x option=value
Set the session option to value and override the default value (or a value in an alternate
options_file specified with the -X option). Multiple -x options can be specified.
-X option_file
Read the session options and behaviors from options_file.
Operands
The swmodify command supports two types of operands: software selections followed by target selec-
tions. These operands are separated by the "at" (@) character. This syntax implies that the command
operates on "software selections at targets".
Software Selections
If a product_specification_file is specified, swmodify will select the software_selections from the full set
defined within the PSF. The software selected from a PSF is then applied to the target_selection, with the
selected software objects either added to it or modified within it. If a PSF is not specified,
swmodify will
select the software_selections from the software defined in the given (or default) target_selection.
The
swmodify command supports the following syntax for each software_selection:
bundle[.product[.subproduct][.fileset]][,version]
product[.subproduct][.fileset][,version]
The = (equals) relational operator lets you specify selections with the following shell wildcard and
pattern-matching notations:
HP-UX 11i Version 3: February 2007 2 Hewlett-Packard Company 501