HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
swremove(1M) swremove(1M)
(Hewlett-Packard Company)
-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
command line.
-J jobid Executes a previously scheduled job. This is the syntax used by the daemon to start
the job.
-Q date Schedules a job for the specified date. You can change the date format by modifying
the file /var/adm/sw/getdate.templ.
-S session_file
Execute swremove based on the options and operands saved from a previous ses-
sion, as defined in session_file. You can save session information to a file with the -C
option.
-t target_file Read the list of target_selections from target_file instead of (or in addition to) the com-
mand line.
-x option=value
Set the session option to value and override the default value (or a value in an alter-
nate option_file specified with the -X option). Multiple -x options can be specified.
-X option_file Read the session options and behaviors from option_file.
Operands
swremove supports two types of operands: software selections followed by target selections. These
operands are separated by the "@" (at) character. This syntax implies that the command operates on
"software selections at targets".
Software Selections
The selections operands consist of software_selections.
swremove 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:
[], *, ?
For example, the following expression removes all bundles and products with tags that end with
"man":
swremove sw_server *man
• Bundles and subproducts are recursive. Bundles can contain other bundles and subproducts can
contain other subproducts. For example:
swremove bun1.bun2.prod.sub1.sub2.fset,r=1.0
or (using expressions):
swremove bun[12].bun?.prod.sub*,a=HP-UX
• The \* software specification selects all products. Use this specification with caution.
The version component has the form:
[,r <op> revision][,a <op> arch][,v <op> vendor]
[,c
<op> category][,q=qualifier][,l=location]
[,fr
<op> revision][,fa <op> arch]
• location applies only to installed software and refers to software installed to a location other than
the default product directory.
Section 1M−−932 − 3 − HP-UX Release 11i: December 2000
___
___