HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swinstall(1M) swinstall(1M)
NAME
swinstall, swcopy - install and configure software products; software products for subsequent installation or
distribution; respectively
SYNOPSIS
swinstall [XToolkit Options][
-i][-p][-r][-v][
-c catalog ][-C session_file ]
[
-f software_file][
-J jobid ][-Q date ][-s source ][-S session_file ][
-t target_file ]
[
-x option=value ][-X option_file ][software_selections][
@ target_selections]
swcopy [XToolkit Options][
-i][-p][-v][-C session_file ][
-f software_file ][-J jobid ]
[
-Q date ][-s source ][
-S session_file ][-t target_file ][-x option=value ][
-X option_file ]
[software_selections][
@ target_selections]
Remarks
• This command supports operation on remote systems. See the Remote Operation section below for
details.
•
swinstall and swcopy support an interactive user interface that can be invoked alone or by
the sd command. See Interactive Operation below.
• For an overview of all SD commands, see the sd(5) man page by typing
man 5 sd on the com-
mand line.
DESCRIPTION
The
swinstall command installs the software_selections from a software source to either the local host
or to one or more target_selections (root filesystems). By default, the software is configured for use on the
target after it is installed. (The software is not configured when installed into an alternate root directory.)
The
swcopy command copies or merges software_selections from a software source to one or more
software depot target_selections. These depots can then be accessed as a software source by the
swin-
stall
command.
Remote Operation
You can enable Software Distributor (SD) to manage software on remote systems. To let the root user from
a central SD controller (also called the central management server or manager node) perform operations on
a remote target (also called the host or agent):
1) Set up the root, host, and template Access Control Lists (ACLs) on the remote machines to permit root
access from the controller system. To do this, run the following command on each remote system:
/usr/lib/sw/mx/setaccess
controller
NOTES:
• controller is the name of the central management server.
• If remote system is 11.00, make sure SD patch PHCO_22526 or a superseding patch is installed on
remote system before running
setaccess.
• If remote system is older than 11.00 or for some other reason does not have setaccess
in place,
copy
setaccess script from an 11.11 or higher system to the remote system.
2) swinstall, swcopy , and swremove have enhanced GUI interfaces for remote operations.
Enable the enhanced GUIs by creating the .sdkey file on the controller. Use this command:
touch /var/adm/sw/.sdkey
NOTE: You can also set up remote access by using swacl directly on the remote machines to grant root or
non-root access to users from the controller system.
Interactive Operation
swinstall and swcopy each support a graphical user interface (GUI). (If your terminal or display can-
not support the GUI, these commands also provide a terminal user interface, in which screen navigation is
done with the keyboard and no mouse.)
To invoke the GUI, enter
swinstall
HP-UX 11i Version 3: February 2007 − 1 − Hewlett-Packard Company 461