Installing Man

Installation of Man

Install Man by running the following commands:



sed -e 's|in \(.*\$PATH\)|in `echo \1`|' \
���configure > tmp~ &&
mv tmp~ configure &&
chmod 755 configure &&
./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

Command explanations

sed -e 's|in \(.*\$PATH\)|in `echo \1`|' configure...: This fixes a little problem in man's configure. The configure-script looks for files like cat, gunzip, bzip2, etc. in a for-loop that walks through a specified path. The splitting of the path is not done correctly and needs that fix.

-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.

Contents

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

Description

man

man formats and displays the on-line manual pages.

apropos

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

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.

makewhatis

makewhatis reads all the manual pages contained in given sections of manpath or the pre-formatted 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.