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

Advanced Topics for swremove

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The topics discussed in this section are for those users who have a firm understanding of the commands and who want to have additional control over their software removal process.

Changing swremove Defaults

swremove default values can be changed in three ways: they can be individually overridden on the command line by specifying an alternative options file with the -X option or individually with the -x option=value option, they can be edited directly in the defaults file or you can use the GUI or TUI Options Editor Dialog to change them interactively. See “Changing Default Options ” for more information.

Removing Software from an Alternate Root

Software can be removed relative to the primary root directory (/) or relative to an alternate root directory. An alternate root is a non-root location that can function as the root of a stand-alone system; that is, a system that can be unmounted and function as a self-contained system. Any information files used in software removal are retrieved from the Installed Product Database (see “Installed Products Database ”) beneath this alternate root, not the IPD on the root volume.

The difference in behavior between swremove and swinstall is that swremove checks for the existence of the alternate root file system when it is specified. The GUI "Target Path Dialog" will appear first when swremove -r is invoked. It asks you to enter an alternate root path on the local host or choose one from the list of registered shared roots on the system. The default shared root that appears in the "Target Path Dialog" will be /export/shared_roots/OS_700.

If the alternate root directory you choose does not exist (that is, is not registered), an error is generated and the dialog that prompted you for the path to the alternate root file system remains displayed.

Removing Patches

Patch software cannot be removed unless:

  • Rollback files corresponding to the patch are available for re-installation.

or

  • The base software modified by the patch is removed at the same time. (Removing the base software also removes the patches associated with that software.)

For more information on removing patches, see Chapter 8 “Managing Patches”.

Dependencies

Dependents are enforced at Selection phase when the autoselect_dependent default is set to "true." This default determines if the system should automatically mark software for removal based on whether it depends on software you mark.

During Selection phase, if a dependent will be left on the system in an unusable state because of the removal of another software object, a dialog shows it. The software object that the dependent requires is not removed. This error can be overridden by setting the enforce_dependencies option in the defaults file to "false". A WARNING will still be generated, but swremove will show that it is being overridden.

When an object is selected (and autoselect_dependent is "true"), if there is more than one dependent available in the Software Selections Window, they are all automatically selected (not just the latest version of the dependent like swinstall dependency selection).

When removing from a depot, dependencies are handled the same as the normal swremove. Dependencies handling is controlled by the defaults enforce_dependencies and autoselect_dependents.

No compatibility filtering or checking is performed in any remove commands. There is nothing to be compatible with; software is already on the local host.

Multiple Versions

Each separate version of a product along with its location directory is listed in the Object List. Selecting a multiple version implies a product:/location directory pair. By default, the location is not displayed in the Software Selection Window. It can be displayed using the Columns Editor View->Columns .. menu item. During the analysis phase, if the version of the product exists on the host but at a different location, a WARNING is generated.

More than one version of a product can be selected during the selection phase. During the analysis phase, if the product exists on the host, it will be removed. If it does not exist on the host, the product is simply skipped. The analysis Product Summary Window gives a product-by-product summary of what will be removed if the remove phase is started.

Multiple versions of products are inherently possible in a depot. No special handling or checks are required when removing from depots.

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