sd.5 (2011 03)

s
sd(5) sd(5)
The swinstall command can also install multiple versions of a software product to a single target sys-
tem, each in a unique product location.
The software management commands,
swconfig, swlist
, swremove, and swverify let you select a
specific product from the multiple installed versions by specifying the product location as part of the
software_selection.
Alternate Root Directory and Depot Directory
By default, the
swinstall, swlist,
swmodify, swremove, and swverify commands operate on
the primary root file system of a target host, (
/). These commands let you specify an alternate root direc-
tory using the
@ target_selection syntax and the
-r command-line option. (This option is not required
and is maintained primarily for backward compatibility.)
NOTES:
Alternate root directories are root file systems other than the default primary root (
/). (The
alternate root directory will eventually become the root of a target host.)
Operations on alternate root directories do not include compatibility filtering.
Configure, unconfigure, and verify scripts are not run for operations on alternate root directories.
You cannot use this option to relocate software during installation. You must use the
l=location syntax in the software selection component.
Alternate root operations are not the equivalent of a
chroot command.
Alternate roots provide advantages for some test environments (such as building a test system by mount-
ing its root file system). You can also use them to quickly get files from a depot onto your system for view-
ing or other purposes.
When operating on a depot, the
swcopy, swpackage, swlist, swverify, swremove, and
swver-
ify commands by default use the depot located at /var/spool/sw
. You can also specify an alternate
depot directory to these commands.
Disk Space Analysis
The
swcopy, swinstall, and swpackage commands perform a disk space analysis on the
target_selections to ensure that enough free disk space is available to perform the task.
When packaging software, you can define space files for filesets to define additional space needed. (Space
files are accounted for in disk space analysis.)
Before performing any disk space analysis,
swcopy, swinstall, and swpackage (also swverify
and swremove) execute the mount command to mount all file systems listed in each target’s file system
table (/etc/fstab or equivalent). This ensures that files are not loaded into a directory below a future
mount point. You can override this mounting policy using the mount_all_filesystems
option.
Control Scripts
The
swask, swconfig, swinstall, swremove, and swverify commands can execute vendor-
defined control scripts to perform checks or other tasks beyond those usually performed by the com-
mands.
In general, SD uses scripts with product or fileset objects. Scripts usually do not accompany software that
HP manufactures onto new systems in the factory.
SD supports these types of scripts:
Checkinstall - (Applies to swinstall.) A check script that analyses each target_selection
(target host) for an installation to determine if the installation and configuration can take place.
Preinstall - (Applies to swinstall.) A script executed immediately before installation of
software files to perform additional file install operations (such as removing obsolete files).
Unpreinstall - (Applies to swinstall.) An "undo" preinstall script in case SD must initiate
recovery during the install process.
Postinstall - (Applies to swremove.) A script executed immediately after a fileset or pro-
duct has been installed to perform additional remove operations (such as resetting default files).
Unpostinstall - (Applies to swremove.) An "undo" postinstall script in case SD must ini-
tiate recovery during the installation process.
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: March 2011