Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

swinstall -p -s softsource -f softlist \
@ myhost:/mydirectory
The @ myhost:/mydirectory is optional if you are installing to your local host and default
directory (root).
NOTE: If you do not specify a source, swinstall uses the local host’s default depot directory,
/var/spool/sw.
To install a pre-determined list of software products in the file mysoft that are physically on
a CD-ROM (mounted locally at /mnt/cd) to the default directory (/) on the local host:
swinstall -f mysoft -s /mnt/cd
To select all software in the default depot (/var/spool/sw) located on a host named server
to the default directory on host myhost and preview the process (-p) without actually installing:
swinstall -p -s server \* @ myhost
A depot location (:/depot) is not specified because it is assumed that the software is located
in the default /var/spool/sw on server and will be installed at / on myhost. The -p
analysis option is explained under “Changing Command Options” (page 56).
To select all products named C and Pascal from the default depot on the host named
sw_server and start an interactive GUI session (-i):
swinstall -i -s sw_server C Pascal
To update HP Omniback software (already installed in the default directory on the local host)
with a newer version from a CD-ROM mounted at /mnt/cd:
swinstall -s /mnt/cd Omniback
2.1.4.1 Updating to HP-UX 11i
For complete instructions for updating from a previous HP-UX release to HP-UX 11i, use the new
update-ux command, as explained in Chapter 2 of HP-UX 11i Installation and Update Guide.
This document and the complete OS documentation is available on your HP-UX Instant Information
CD-ROM and on the BSC website at http://www.hp.com/go/hpux-core-docs.
2.1.4.2 Installing Patches
The swinstall command has a variety of patch management features, including a patch
management dialog in the GUI. See Chapter 5: “HP-UX Patching and Patch Management” (page 103)
for complete details on patches and using the swinstall GUI patch features.
2.1.4.3 Recovering Updated Files
The autorecover_product option lets you automatically recover or roll back to original product
files if you start an install and the process fails.
When updating files, swinstall removes the original files as they are updated. If an error occurs
while swinstall is loading new filesets, the product being loaded is marked as corrupt, the
original files are lost, and you must repeat the installation.
By setting the autorecover_product option to true, all filesets that are updated are first saved
as backup copies. They are not removed until all filesets within the product finish loading. If
swinstall terminates because of an error, you can correct the error then re-run swinstall.
swinstall automatically continues the load process where it was interrupted.
CAUTION: Most HP-UX products have preinstall and postinstall scripts without accompanying
undo scripts. This negates any advantage of using the autorecover_products option. Use
autorecover_products only with software that has the associated undo scripts.)
50 Installing Software