Software Distributor: Cookbook

# swpackage -d /tmp/procmail.depot -x target_type=tape \-s
/home/bass/depot procmail
The addition of the -x target_type=tape forces swpackage to write the depot sequentially
to the tape (or file) instead of creating a distribution directory.
To create a tape, substitute the file name given to the -d option with the tape device:
# swpackage -d /dev/rmt/0m -x target_type=tape \-s /home/bass/depot
procmail
The -d argument may also be a pipe to a UNIX command, like the following:
# swpackage -d "| gzip -c > /tmp/procmail.depot.gz" \-x target_type=tape
...
swlist Tricks
Assume you have the HP-UX 11i v1 (B.11.11) Installation CD mounted on /cdrom, you can find
the product name of the C compiler as follows:
% swlist -l product -l subproduct -s /cdrom | grep -i compiler
# B3901BA B.11.11.04 HP C/ANSI C Developer's Bundle for HP-UX 11.i
(S800)
If you swinstall the C compiler from a depot somewhere else you can determine which one with
the following:
% swlist -v -l product C-ANSI-C | grep install_source
install_source windsock:/var/opt/ignite/depots/Rel_B.11.11/apps_800
You could use the following command to determine which product contains pxdb:
% swlist -l file -s /cdrom | grep pxdb
DebugPrg.DEBUG-PRG: /opt/langtools/bin/pxdb
DebugPrg.DEBUG-PRG: /opt/langtools/bin/pxdb32
DebugPrg.DEBUG-PRG: /opt/langtools/bin/pxdb64
DebugPrg.DEBUG-PRG: /opt/langtools/lib/nls/msg/C/pxdb.cat
OS-Core.Q4: /usr/contrib/Q4/bin/q4.pxdb
OS-Core.Q4: /usr/contrib/Q4/bin/q4pxdb
OS-Core.Q4: /usr/contrib/Q4/bin/q4pxdb64
OS-Core.Q4: /usr/contrib/bin/q4.pxdb
OS-Core.Q4: /usr/contrib/bin/q4pxdb
OS-Core.Q4: /usr/contrib/bin/q4pxdb64
OS-Core.Q4: /usr/contrib/lib/nls/msg/C/q4pxdb.cat
OS-Core.Q4: /usr/contrib/lib/nls/msg/C/q4pxdb64.cat
PHCO_25723.Q4: /usr/contrib/Q4/bin/q4.pxdb
PHCO_25723.Q4: /usr/contrib/Q4/bin/q4pxdb
PHCO_25723.Q4: /usr/contrib/Q4/bin/q4pxdb64
swlist Tricks 7