Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

Miscellaneous Files and Commands merge_whatis(8)
NAME
merge_whatis - Creates and updates the whatis database le used by the apropos, man, and
whatis commands
SYNOPSIS
merge_whatis
[MANPATH_entry ]
FLAGS
MANPATH_entry
Species the absolute pathname of the directory in which the whatis database
le should be located. If this operand is omitted, the default directory expected
by the man command (/usr/share/man) is used.
DESCRIPTION
The merge_whatis command allows you to create or replace the whatis database le that
corresponds to a set of installed reference (man) pages. To execute the merge_whatis command
for reference pages distributed by HP, your user ID must be the super ID. (This restriction is
imposed by the security of the directories that contain the les processed by the command.)
Use this command after you install an HP product for which reference pages are added to your
system or updated on your system. You can also use the merge_whatis command after adding
reference pages that are written on site or by other software vendors, provided the database le
le-naming convention and placement shown under FILES later in this reference page are met.
You can determine whether this command needs to be executed by recording the last-
modication dates for all les in the whatis.frag directory after each installation. After the next
installation, check the current dates against the dates you recorded from the previous installation.
If the last-modication date for any le changes after an installation, then the merge_whatis
command should be used.
EXAMPLES
1. Using the command to update the /usr/share/man/whatis le:
merge_whatis
FILES
/usr/share/man/whatis
Contains the default database used by the apropos, man, and whatis commands.
/usr/share/man/whatis.frag/whatis.fragment
Contains the database fragment les used to create the /usr/share/man/whatis
le.
For HP products, the fragment value is normally the Tandem product number (T
number) of the corresponding pax archive le that contains the product code.
Such pax archive les are installed from /G/tsvvol/zossutl/fragmentman.
MANPATH_entry/whatis
Contains an alternate database used by the apropos, man, and whatis com-
mands. The merge_whatis command can create this database le in any direc-
tory that contains directories of reference pages, provided the directory named
whatis.frag also exists in the directory specied by the MANPATH_entry
operand.
MANPATH_entry/whatis/whatis.frag/whatis.fragment
Contains the database fragment les used to create the MANPATH_entry/whatis
le. This set of les must be present in the directory specied by the
527188-003 Hewlett-Packard Company 1217