Just as with other SD-UX commands, to start a remove session
via the command line you must assemble options, selections and defaults
into a command line or use command options to point to files containing
default changes and other variables.
The swremove
Command |
 |
The syntax for swremove
is:
swremove [XToolkit
Option] [-p] [-d|-r|-l] [-i] [-v] [-s source] [-x option=value] [-f software
file] [-t target file] [-X option
file] [-C session file] [-S session
file] [software
selections] [@ host
selection] |
To remove a software product called MYSOFT from the default
depot on the local host, type:
Command Options |
 |
The swremove
command supports the following standard options:
Title not available (Command Options )
- Option
Action
- -p
Previews the remove operation
without actually removing anything. In the GUI/TUI, this option
precludes advancing to the remove phase. You can only go through
the Analysis phase.
- -d
Operate on a depot rather than
installed software. See the section "Removing Software From Depots"
in this chapter for more information.
- -r
alternate root
(Optional) Specifies an alternate
root directory. See “Advanced Topics for swremove ”
for more information on removing software from alternate roots.
- -l
(Optional) Runs the command in linkremove
mode, which removes the link between software installed in a shared
root and the diskless client's private root.
- -i
Runs a GUI or TUI interactive
session. Used to "pre-specify" software selections for use in the
GUI/TUI.
- -v
Turns on verbose output.
- -x
option=value
Allows setting of an option
on the command line.
- -f
software file
Reads the list of software selections
from a file.
- -t
target file
Reads the list of target hosts
from a file. This option applies to the HP OpenView Software Distributor
product.
- -X
option file
Uses the options in the specified
options file.
- -C
session file
Run the command
and save the current option and operand values to a file for re-use
in another session.
- -S
session file
Runs swremove based on a previous
session.
Changing Options and Defaults |
 |
In addition to the command-line options listed above, several
command behaviors and policy options can be changed by editing default
values found in the defaults file /var/adm/sw/defaults
or $HOME/.sw/defaults.
Values in this file are specified using the command.option=value syntax.
See “Advanced Topics for swremove ” for more information
on changing the values in these defaults and extended options.