| United States-English |
|
|
|
![]() |
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 6 Removing Software Removing Installed Software Using the Command Line (swremove) |
|
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. swremove [XToolkit Option] [-d|-r|-l]
[-i] [-p] [-v] To remove a software product called MYSOFT from the default depot on the local host, type: swremove -d MYSOFT To preview the remove of the C and Pascal products installed at the local host: swremove -p cc pascal To remove a particular version of HP Omniback: swremove Omniback,l/opt/Omniback_v2.0 To remove the entire contents of a local depot: swremove -d * @ /var/spool/sw The swremove command supports the following standard options: Option Action
The swremove command supports the standard software selection syntax. For more details on software selection syntax and an example of a software selection file, see “Command Operands ”. 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 in the user-specific defaults file: $HOME/.swdefaults. 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. Table 6-1 Removal Default Options
Each invocation of the swremove command defines a configuration session. The invocation options, source information, software selections, and target hosts for this session are saved before the installation or copy task actually commences. This lets you re-execute the command even if the session ends before proper completion. Each session configuration is automatically saved to the file $HOME/.sw/sessions/swconfig.last. This file is overwritten at each invocation of swremove. You can save a session configuration to a specific file by executing swremove with the -C session_file option. If you do not specify a specific path for the session file, the default location is $HOME/.sw/sessions/. To re-execute a session file, specify the session file as the argument for the -S session__file option of swremove. Note that when you re-execute a session file, the values in the session file take precedence over values in the system defaults file. Likewise, any command line options or parameters that you specify when you invoke swconfig take precedence over the values in the session file |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||