Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
For More Information
See Appendix A (page 227) for complete descriptions of each default.
swmodify Tasks and Examples
Here are some examples of how you can use swmodify to change catalog files or IPDs:
Adding Information to the IPD
To add descriptions of files /tmp/a, /tmp/b, and /tmp/c to an existing fileset:
swmodify -x files=/tmp/a /tmp/b /tmp/c PRODUCT.FILESET
If a control script adds new files to the installed file system, the script can use swmodify to make
a record of the new files.
Changing Existing IPD Information
To create some new bundle definitions for products in an existing depot:
# swmodify -d -s new_bundle_definitions \
\* @ /mfg/master_depot
If a product provides a more complex configuration process, a script can set the fileset’s state to
configured upon successful completion.
To change the values of a fileset’s attributes:
# swmodify -a state=installed PRODUCT.FILESET
To change the attributes of a depot:
# swmodify -a title=Master Depot \
-a description=/tmp/mfg.description \
@ /mfg/master_depot
Defining New Objects
You can import an existing application (not installed by SD-UX) by constructing a simple Product
Specification File (PSF) describing the product and then invoke swmodify to load that definition
into the IPD.
To create a new fileset definition (if the PSF contains file definitions, then add those files to the new
fileset):
swmodify -s new_fileset_definition
Removing Installed Software (swremove)
The swremove command removes software that has been installed on a host. Before its removal,
the software is first unconfigured. swremove also removes software products that have been copied
to a software depot.
swremove Features and Limitations
Removes files from the specified location. It removes symbolic links, but not the targets of
symbolic links. It also lists busy files that were not removed.
Automatic use of dependencies to automatically select software on which to operate (in addition
to any software you specify directly).
Ability to run control scripts as part of the removal:
Undoes host configuration performed by configure scripts.Unconfigure
Checkremove Analyzes each target to determine if removal and unconfiguration can take
place. If this check fails, an object cannot be removed.
Preremove Performs additional file operations, such as removing files created by a
preinstall script.
76 Managing Installed Software