6.17. Installing Man

6.17.1. Installation of Man

Install Man by running the following commands:


./configure -default &&
make &&
make install &&
sed s/AWK=/"AWK=\/usr\/bin\/mawk"/ /usr/sbin/makewhatis > makewhatis-new &&
mv makewhatis-new /usr/sbin/makewhatis &&
chmod 755 /usr/sbin/makewhatis

6.17.2. Command explanations

-default: This configures the man package with default settings.

sed s/AWK=/"AWK=\/usr\/bin\/mawk"/ /usr/sbin/makewhatis > makewhatis-new: This modifies /usr/sbin/makewhatis's AWK variable and fills in the location of the mawk program.

chmod 755 /usr/sbin/makewhatis: This makes the makewhatis script executable again.

6.17.3. Contents

The Man package contains the man, apropos whatis and makewhatis programs.

6.17.4. Description

6.17.4.1. man

man formats and displays the on-line manual pages.

6.17.4.2. apropos

apropos searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output.

6.17.4.3. whatis

whatis searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output. Only complete word matches are displayed.

6.17.4.4. makewhatis

makewhatis reads all the manual pages contained in given sections of manpath or the preformatted pages contained in the given sections of catpath. For each page, it writes a line in the whatis database; each line consists of the name of the page and a short description, separated by a dash. The description is extracted using the content of the NAME section of the manual page.