HP-UX Containers (SRP) A.03.00 Administrator's Guide

78
SD command Global view System container
swremove
Enhanced Not supported (blocked)
swconfig
Enhanced Not supported (blocked)
15.5.1 Managing software
15.5.1.1 Installing software
The swinstall command is used to install the software selection from a software source. By
default, the software is configured to use after installation. On HP-UX Containers enabled system, the
software source must be a local software depot, it must not be a remote network registered depot (see
15.5.2 Remote network registered depots).
The swinstall command executed in the global view will install and configure the software in the
global view and in all the system containers in the system. For a software product that requires a
reboot, the installation of the product occurs first in the global view, then in each system container,
followed by a reboot of the entire system. Although the action is repeated in each system container,
an HP-UX kernel is not created in each system container. The /stand directory that holds kernels is a
read-only loopback mounted to the global view /stand directory.
NOTE: The graphical user interface of SD commands is not supported in a HP-UX Containers system,
only terminal interface is supported.
To install MY_PRODUCT in the system and then in each system container, enter:
# swinstall -s /tmp/myproduct.depot MY_PRODUCT
To install a patch that requires reboot, enter:
# swinstall -x autoreboot=true -s /tmp/patch.depot PHNE_12345
To view the detailed log of the action that was repeated in the system container, execute the swjob
command inside the container using the srp_su command as follows:
# /opt/hpsrp/bin/srp_su container_A root -c "swjob -a log container_A-0004"
15.5.1.2 Listing software
The swlist command is used to display information about software products installed at or available
from the specified target selection. See swlist(1M) for more information.
The swlist command when executed in the global view shows the products installed in the system
and, when executed inside a system container, shows the products installed in the container. You can
also specify a container hostname with the s option in the global view to list the products installed in
a container.
To view the list of installed products in container myContainer_A, run the swlist command inside
the container:
# /opt/hpsrp/bin/srp_su myContainer_A
# swlist -l product
# exit
15.5.1.3 Removing software
The swremove command is used to remove software selection from the system. When removing
installed software, swremove also unconfigures the software before it is removed. As in the case of
installation of a software product that requires a reboot, the removal of the product occurs first in the
global view, then in each system container, followed by a reboot of the entire system.