Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 6 Removing Software

Removing Installed Software Using the Command Line

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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]

A Simple Removal

To remove a software product called MYSOFT from the default depot on the local host, type:

swremove -d MYSOFT

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.

Command Operands

The swremove command supports the standard software selection (bundle[.product[.subproduct][.fileset][,version]]) and host selection (@ host[:/directory]) operands.

For more details on software selection syntax and an example of a software selection file, see “Command Line Software Selections ” in Chapter 2 “Installing and Copying Software ”.

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.