swconfig.1m (2012 03)
s
swconfig(1M) swconfig(1M)
NAME
swconfig - configure, unconfigure, or reconfigure installed software
SYNOPSIS
swconfig [-p][-u][
-v][-c catalog ][-C session_file ][-f software_file ][
-J jobid ][-Q date ]
[
-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 Remote Operation below.
•
swconfig can perform limited interactive operations. See Interactive Operation below.
• For an overview of all SD commands, see the sd(5) man page by typing
man5sdon the com-
mand line.
DESCRIPTION
The
swconfig command configures, unconfigures, or reconfigures installed software products for execu-
tion on the specified targets. The
swconfig command transitions software between INSTALLED and
CONFIGURED states. Although software is automatically configured as part of the
swinstall com-
mand and unconfigured as part of the
swremove command, swconfig lets you configure or
unconfigure software independently when the need arises.
When
HP-UX Containers (SRP) is installed and enabled, the swconfig command behavior is
changed to support software management for system containers. (For more information on HP-UX Con-
tainers, refer to the srp (1M) and container_system(5) manpages.)
Configuration primarily involves the execution of vendor-supplied configure scripts . These scripts per-
form configuration tasks which enable the use of the software on the target hosts. A vendor can also sup-
ply unconfigure scripts to "undo" the configuration performed by the configure script.
NOTES:
• You should execute
swconfig when an initial configuration by swinstall failed, was
deferred, or needs to be changed.
• With
swinstall, you can defer configuration by using the defer_configure
default
option.
•
swinstall does not perform configuration on multiple versions of software.
• The
swconfig command only operates on software installed to the primary root file system.
•
swinstall and swremove do not run configure or unconfigure scripts when you specify an
alternate root directory with those commands.
Other features of
swconfig include:
• By default, the
swconfig command supports only configuration of compatible software.
• If a fileset specifies a prerequisite on other software, that software must be in a "configured" state
before the software specifying the dependency will be configured.
• The
swconfig command configures multiple versions of a product if you set
allow_multiple_versions=true. The vendor must therefore detect and prevent multiple
configured versions in their configure scripts, if that is necessary.
• Configure scripts are useful for software updates and reinstallation, as well as first-time installa-
tion.
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 opera-
tions 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 sys-
tem:
/usr/lib/sw/mx/setaccess controller
HP-UX 11i Version 3: March 2012 − 1 − Hewlett-Packard Company 1