swinstall.1m (2011 09)

s
swinstall(1M) swinstall(1M)
Fully qualified software specs include the
r=, a=, and v= version components even
if they contain empty strings. For installed software,
l= is also included.
No space or tab characters are allowed in a software selection.
The software instance_id can take the place of the version component. It has the form:
[instance_id]
within the context of an exported catalog, where instance_id is an integer that distinguishes ver-
sions of products and bundles with the same tag.
The
\* software specification selects all products. It is not allowed when removing software from the root
directory /.
Target Selection
The
swinstall and swcopy commands support the following syntax for each target_selection. The
colon (
:) is required if both a host and directory are specified.
[host][
:][/directory] | [
./relative_path]|[
../relative_path]
A host may be specified by its host name, domain name, or Internet address. If host is specified, the direc-
tory must be an absolute path. To specify a relative path when no host is specified, the relative path must
start with
./ or ../; otherwise, the specified name is considered as a host.
If multiple targets are specified, the first target in the list is used as the basis for selections.
Target Selections with IPv6 Address
The
swinstall and swcopy commands also support specifying the host as an IPv6 address on HP-UX
Release 11i v3, as shown below:
[host_IPv6_address
][:][/directory ]
If both the hostname and the path are specified, then the first occurrence of a slash (
/) is treated as the
separator.
The IPv6 address can optionally be enclosed in a pair of square brackets (
[) and (]).
EXTERNAL INFLUENCES
Default Options
In addition to the standard options, several SD behaviors and policy options can be changed by editing
the default values found in:
/var/adm/sw/defaults
the system-wide default values.
$HOME/.swdefaults
the user-specific default values.
Values must be specified in the defaults file using this syntax:
[command_name.]option=value
The optional command_name prefix denotes one of the SD commands. Using the prefix limits the change
in the default value to that command. If you leave the prefix off, the change applies to all commands.
You can also override default values from the command line with the
-x or -X options:
command
-x option =value
command
-X option_file
The following section lists all of the keywords supported by the
swinstall and swcopy commands. If
a default value exists, it is listed after the =.
admin_directory=/var/adm/sw (for normal mode)
admin_directory=/var/home/LOGNAME/sw (for nonprivileged mode)
The location for SD logfiles and the default parent directory for the installed software
catalog. The default value is /var/adm/sw for normal SD operations. When SD
operates in nonprivileged mode (that is, when the run_as_superuser default option
is set to true):
The default value is forced to
/var/home/LOGNAME/sw.
The path element
LOGNAME is replaced with the name of the invoking user, which SD
reads from the system password file.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2011