man.bsd.lv manual page server

Manual Page Search Parameters

MAKEMANDB(8) System Manager's Manual MAKEMANDB(8)

makemandbparse the manual pages and build a search index for apropos(1)

makemandb [-floQqv] [-C path]

The makemandb utility traverses the directories containing man pages, parses the manual pages with the help of mandoc(3) and builds an Sqlite database to support full text searches by apropos(1). It obtains the list of directories to traverse using the -p option of man(1).

It supports the following options:

path
Use different man(1) configuration file than the default, /etc/man.conf.
Force rebuilding the index from scratch, pruning the existing one.
Limit the parsing to only the NAME section of the pages. This option can be used to mimic the behavior of the classic apropos(1) and also to substantially save disk space.
Use this option to optimize the index for faster search by apropos(1) and also to significantly reduce disk space usage. This is an expensive I/O operation.
Print only fatal error messages (i.e., when the database is left in an inconsistent state and needs manual intervention).
Print only warnings and error messages but no status updates.
Enable verbose output. This prints the name of every file being parsed and a summary at the end of the index update.

The index generated by makemandb is also used by the whatis(1) program, replacing the old “makewhatis” program.

The name of the FTS table is mandb and its schema is as follows:

The section number of the page
The name of the page from the NAME section.
The one line description from the NAME section.
The DESCRIPTION section.
The LIBRARY section.
The RETURN VALUES section.
The ENVIRONMENT section.
The FILES section.
The EXIT STATUS section.
The DIAGNOSTICS section.
The ERRORS section.
MD5 checksum of the man page.
The machine architecture (if any) for which the man page is relevant.

/etc/man.conf
The location of the Sqlite FTS database can be configured using the _mandb tag.

apropos(1), man(1), whatis(1), mandoc(3), man.conf(5)

Abhinav Upadhyay

June 18, 2016 NetBSD-9.2