PING : THE SOFTWARE DEPOT COOKBOOK : TRICKS WITH SWLIST
Assume you have the HPUX 10.20 Install CD-ROM mounted on "/cdrom".
What is the product name of the C compiler? Of the Fortran compiler?
% swlist -l product -l subproduct -s /cdrom | grep -i compiler
# C-ANSI-C B.10.20.00 HP C/ANSI C Compiler
The answer is C-ANSI-C
% swlist -l product -l subproduct -s /cdrom | grep -i fortran
# FORTRAN B.10.20.00 FORTRAN Programming
FORTRAN.Demos FORTRAN Guide, Reference and Floating Point Guide
FORTRAN.Development FORTRAN Programming
FORTRAN.Help FORTRAN On-line Help
FORTRAN.Manuals FORTRAN Man Pages
FORTRAN.ManualsByLang FORTRAN manuals in foreign languages
FORTRAN.Notes FORTRAN Release notes
FORTRAN.Vectorizor FORTRAN Vectorizor
The answer is FORTRAN
I swinstalled the C compiler from some depot somewhere. How can I find out which one?
% swlist -v -l product C-ANSI-C | grep install_source
install_source windsock:/depot/s700_hpux_10.20
What product contains pxdb?
% swlist -l file -s /cdrom | grep pxdb
C-Plus-Plus.HPCXX: /opt/CC/contrib/Tools/time_pxdb
DebugPrg.DEBUG-PRG: /opt/langtools/bin/pxdb
DebugPrg.DEBUG-PRG: /opt/langtools/lib/nls/msg/C/pxdb.cat
OS-Core.Q4: /usr/contrib/bin/q4pxdb
OS-Core.Q4: /usr/contrib/lib/nls/msg/C/q4pxdb.cat
The answer is DebugPrg.