Linux From Scratch
Prev | Chapter 6. Installing basic system software | Next

# Installing Man

## 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`

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

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

Prev | Home | Next
Installing Groff | Up | Installing Perl