HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swlist(1M) swlist(1M)
swlist -d -a readme -l product SW-DIST @ hostA:/depot11
Options
When no options or operands are specified,
swlist lists the software bundles (and products which are not
part of a bundle) that are installed at the local host.
swlist supports the following options:
-d List software available from a depot (instead of software installed on a root filesystem).
-i Invoke the swlist interactive user interface. The interactive interface lets you browse
SD software objects. Invoking swlist -i -d lets you browse depot software. See the
Interactive Operation and Remote Operation headings above for additional details.
-r Operates on an alternate root directory, which must be specified in the
@ target_selections
option. (This option is not required for alternate root operations but is maintained for back-
ward compatibility. See the Alternate Root Directory and Depot Directory heading in sd(5)
for more information.)
-R Shorthand for -l bundle -l product -l subproduct -l fileset.
-v List all the attributes for an object if no
-a options are specified. (Vendor-defined attri-
butes are not included. See the
-a option.) The output lists one attribute per line in the
format:
attribute_name attribute_value
(See sd(4) for details on all SD attributes.)
-a attribute
Display a specific attribute, such as revision, description, vendor information, size, vendor-
defined attributes, or others. (See sd(4) for details on all SD attributes.) The output lists
one attribute per line in the format:
attribute_name attribute_value
To display multiple attributes, specify multiple -a options.
To list the full set of attributes for a software object, use the -v option.
Note that the
tag attribute (i.e. the identifier) is always displayed for product, subpro-
duct, and fileset objects. The path attribute (i.e. the filename) is always displayed for file
objects.
-c catalog
Write full catalog structure information into the directory specified by the catalog modifier.
You can use this exported catalog structure for distributions and to list installed software
catalog information.
If you use the
-c catalog option, the -a attribute and -l level do not apply. All attri-
butes down to the file level and the control scripts are written to the catalog.
-C session_file
Save the current options and operands to session_file. You can enter a relative or absolute
path with the file name. The default directory for session files is /.sw/sessions/
.You
can recall a session file with the
-S option. (Note that session management does not apply
to the swlist interactive user interface invoked by the -i option.)
-f software_file
Read the list of software_selections from software_file instead of (or in addition to) the com-
mand line.
-l level List all objects down to the specified level. Both the specified level(s) and the depth of the
specified software_selections control the depth of the swlist output.
-s source
Specify the software source to list. This is an alternate way to list a source depot. Sources
can also be specified as target depots and listed using the -d option.
-S session_file
Execute swlist based on the options and operands saved from a previous session, as
defined in session_file. You can save session information to a file with the -C option.
(Note that session management does not apply to the swlist interactive user interface
invoked by the -i option.)
490 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007