Software Distributor Administrator Guide (September 2010)

2.1.4 Installation Tasks and Examples
This section provides examples of commands for installing software products. Note
that The \* is an optional shorthand wildcard meaning “all products and filesets or
all available software.”
To start an install session via the command line, you must assemble any options (if
needed), host and source names, and software selections into a command string. For
example:
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 75).
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.
66 Installing Software