Software Distributor Administration Guide for HP-UX 11i

Managing Installed Software
Listing Your Software (swlist)
Chapter 3106
Listing Attributes
You may specify only one attribute per -a option. However, the tag
attribute is always included by default, so specifying -a
revision
lists
all product names and their revision numbers.
For example, to list whether software bundles on a CD-ROM (mounted to
the directory /SD_CDROM) require a codeword or not, use the command:
swlist -d -a is_protected @ /SD_CDROM
An attribute containing a large amount of information (for example, a
README) is physically stored as a separate file and is displayed by itself
if -a
README
is requested.
Refer to the sd(4) manpage for a full list of SD-UX attributes.
Creating Custom Lists
The swlist options and defaults allow you to create lists to fit your
specific requirements. These lists can be as simple as listing the software
products installed on your local host or as complex as a multiple column
listing of files, filesets, subproducts, products and bundles installed.
For example, if you were to change the one-liner option on the
command line, the command:
swlist -x one_liner="name revision size title"
produces this list of all the products installed on the local host:
RX 1.98 9845 RX X Terminal - all software
ALLBASE 8.00.1 6745 Database Products
C-LANG 2.5 5678 Programming Language
DIAGNOSTICS 2.00 56870 Hardware Diagnostic Programs
DTP68 2.00 26775 Desktop Publishing
LISP-LANG 8.00.1 90786 LISP Programming Language
WINDOWS 2.06 10423 Windowing Products
This listing shows, in columns from left to right, the product’s tag, its
revision number, its size in Kbytes and its title or full name.
NOTE Whatever you specify in the command line for software level and
attributes will override the values in the default option files.