Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2488, September 2012)

Figure 2 Example of HP-UX Software Structure
1.2.3 Installed Products Database
SD-UX uses the Installed Products Database (IPD) to keeps track of what software is installed on a
system. The IPD is a series of files and subdirectories that contain information about all the products
that are installed under the root directory (/). (For depots, this information is maintained in catalog
files beneath the depot directory.)
The swinstall, swconfig, swcopy, and swremove commands automatically add to, change,
and delete IPD and catalog file information as the commands are executed. The swlist and
swverify commands use IPD and catalog information to affect command behavior.
The IPD keeps track of the software state, which includes conditions such as installed or configured.
1.2.4 Control Scripts
Products and filesets can contain control scripts that perform checks and other tasks not performed
by SD-UX commands. SD-UX supports the following types of scripts:
Checkinstall Analyzes each target to determine if the installation and configuration can
take place. (Executed by swinstall.)
Checkremove Analyzes each target to determine if removal and unconfiguration can take
place. (Executed by swremove.)
Configure Configures installed filesets or products. (Executed by swconfig and
swinstall.)
Fix Corrects and reports on problems in installed software. (Executed by
swverify.)
Postinstall Performs additional install operations immediately after a fileset or product
has been installed. (Executed by swinstall.)
Postremove Performs additional remove operations immediately after a fileset or product
has been removed. (Executed by swremove.)
Preinstall Performs file operations (such as removing obsolete files) immediately before
installation of software files. (Executed by swinstall.)
Preremove Performs additional file operations (such as removing files created by a
preinstall script) immediately before removal of software files. (Executed by
swremove.)
Request Requests an interactive response from the user as part of the installation or
configuration process. (Executed by swask, swconfig, and swinstall.)
Unconfigure Undoes configurations performed by configure scripts. (Executed by
swconfig and swremove.)
1.2 SD-UX Concepts 21