HP Tru64 UNIX Version 5.1B-2 and Higher Patch Kit Installation Instructions (March 2009)

C Using dupatch from the Command Line
The dupatch utility provides a command-line interface that allows dupatch to be called by
other programs. You can use the command line to invoke all functions except for baselining. The
functions have the same operation and definition as the menu-driven interface. For information
about using the command-line interface, see the dupatch(8) reference page, which is installed on
your system when you install the patch-kit tools and is documented in this appendix.
You must specify all mandatory options on the command line or in a data file. If any mandatory
option is missing, the command will fail with an appropriate error message; it will not prompt
you for the missing option and information.
Installing and Removing Release Patch Kits
The following example shows the use of the dupatch command and several of its options to
install the Version 5.1B-3 patch kit:
/usr/sbin/dupatch -install -kit - license /patch/pk5/patch_kit -name Betty -note \
"installing pk5" -product all -patch all
When installing a new kit, the first time you invoke the dupatch command with the -installor
-install -precheck_only options you will install the latest patch tools.
The following example shows the use of the dupatch command to remove the Version 5.1B-3
patch kit:
/usr/sbin/dupatch -delete -name Joe -note "removing pk" \
-product all -patch T64V51BB26AS0005-20050211
The new patch tools cannot be loaded using the delete command on the command line. Doing
that will cause the following error to be displayed:
product_map does not exist or is empty, Cannot continue.
To install the new tools, first issue the install command with the -precheck_only option.
This will load the tools and not cause changes to your system. You can then use the delete
command.
Deleting a CSP
You delete a CSP the same way you delete a release patch. The patch number you specify with
the -patch option is the CSP's PatchID. The following steps describe how to find the PatchID:
1. Determine which kit the patch was delivered in. For example,
T64KIT0020665-V51BB22-ES-20031113.tar. (For information about identifying the
fields in this CSP name, see the Patch Kit Overview and Naming document at http://
h30097.www3.hp.com/docs/patch/naming/TITLE.HTM.)
2. View the text file that ships with kit. For example:
# more /var/adm/patch/doc/T64KIT0020665-V51BB22-ES-20031113.txt
The text files for CSP kits are also available on the Web at the patch kit download site, http://
www.itrc.hp.com/service/patch/mainPage.do .
3. Find the section of the text file that lists the PatchID. For example:
3 Summary of CSPatches contained in this kit
Tru64 UNIX V5.1B
PatchId Summary Of Fix
----------------------------------------
C386.00 Fix for SSRT3653, BIND v8
4. Type the dupatch command line, using the CSP patch ID. For example:
# /usr/sbin/dupatch -delete -name "Sally G" -note \
"delete CSP" -product TRU64_UNIX_V5.0B -patch C386.00
Installing and Removing Release Patch Kits 91