HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

s
swremove(1M) swremove(1M)
(Hewlett-Packard Company)
fr and fa apply only to filesets.
r , a , v , c
, and l apply only to bundles and products. They are applied to the leftmost bun-
dle or product in a software specification.
The <op> (relational operator) component can be of the form:
=, ==, >=, <=
, <, >,or!=
which performs individual comparisons on dot-separated fields.
For example, r>=B.10.00 chooses all revisions greater than or equal to
B.10.00. The sys-
tem compares each dot-separated field to find matches. Shell patterns are not allowed with these
operators.
The
= (equals) relational operator lets you specify selections with the shell wildcard and
pattern-matching notations:
[], *, ?,
!
For example, the expression r=1[01].*
returns any revision in version 10 or version 11.
All version components are repeatable within a single specification (e.g.
r>=A.12, r<A.20
).
If multiple components are used, the selection must match all components.
Fully qualified software specs include the
r=, a=, and
v= version components even if they con-
tain empty strings.
No space or tab characters are allowed in a software selection.
The software instance_id can take the place of the version component. It has the form:
[instance_id]
within the context of an exported catalog, where instance_id is an integer that distinguishes ver-
sions of products and bundles with the same tag.
Tar get Selections
swremove supports the following syntax for each target_selection:
[host][:][/directory]
The : (colon) is required if both a host and directory are specified.
EXTERNAL INFLUENCES
Default Options
In addition to the standard options, you can change swremove behavior and policy options by editing the
default values found in:
/var/adm/sw/defaults
the system-wide default values.
$HOME/.swdefaults
the user-specific default values.
Values must be specified in the defaults file using this syntax:
[command_name.]option=value
The optional command_name prefix denotes one of the SD commands. Using the prefix limits the change in
the default value to that command. If you leave the prefix off, the change applies to all commands.
You can also override default values from the command line with the -x or -X options:
command -x option=value
command -X option_file
The following section lists all of the keywords supported by swremove. If a default value exists, it is
listed after the "=".
The policy options that apply to swremove are:
admin_directory=/var/adm/sw (for normal mode)
admin_directory=/var/home/LOGNAME/sw
(for nonprivileged mode)
The location for SD logfiles and the default parent directory for the installed software cata-
log. The default value is
/var/adm/sw for normal SD operations. When SD operates in
nonprivileged mode (that is, when the run_as_superuser default option is set to
true):
HP-UX 11i Version 1: September 2005 4 Hewlett-Packard Company Section 1M985