Software Distributor Administration Guide for HP-UX 11i

Managing Software Depots
Additional Depot Management Tasks and Examples
Chapter 4 159
To list all depots on a remote machine (hostA), type:
swlist -l depot @ hostA
To list all the depots on a system from newest to oldest (by time last
modified):
swlist -l depot -a mod_date -a mod_time | sort -rn -k 7,7
TIP Use the mod_time as a convenient sort field (a single integer), and use
mod_date to include human-readable output. (Place mod_time at the end
of the display where it’s less visible.)
Listing the Contents of a Depot (swlist -d)
With swlist you can list all software that is packaged, stored, and ready
to be installed.
The swlist -d option lets you list software residing on the default depot
on your local host. For browsing any depot in the GUI, you can use
swlist -i -d. You can also view the associated session and audit log
files.
NOTE By default the output of swlist will reflect the POSIX format for
attributes. This may affect users who parse this output.
In the following examples, swlist output requests are sent to standard
output. All examples assume the one_liner option is revision size
title and the level option is product or undefined.
List the contents of the local tape depot, /dev/rmt/0:
swlist -d @ /dev/rmt/0
AUDIT 3.5 9834 Trusted Systems Auditing Utils
COMMAND 1.7 4509 Core Command Set
C-LANG 2.5 5678 C Programming Language
DISKLES 1.8 6745 HP Cluster Commands
KERNEL 1.4 56908 Kernel Libraries and Headers
VUE 1.3 5489 Vue (Instant Ignition Release)
WINDOWS 2.06 10423 Windowing Products