LinuxCommandLibrary

mandb

creates and updates the manual page index caches

TLDR

Update man page database

$ mandb
copy
Update single entry
$ mandb --filename [path/to/file]
copy
Create database from scratch
$ mandb --create
copy
Process user databases only
$ mandb --user-db
copy
Don't purge obsolete entries
$ mandb --no-purge
copy
Test man pages validity
$ mandb --test
copy

SYNOPSIS

mandb [options] [manpath]

DESCRIPTION

mandb creates and updates the manual page index caches. These caches are used by man and apropos to quickly find manual pages. It scans the manual page directories and builds a database of page names and descriptions.

PARAMETERS

--filename FILE

Update single file entry
-c, --create
Create database from scratch
-u, --user-db
Process only user databases
-p, --no-purge
Don't purge obsolete entries
-t, --test
Test validity without updating
-q, --quiet
Suppress warnings
-d, --debug
Print debugging information

CAVEATS

Usually run automatically by package managers. May require root for system-wide databases.

SEE ALSO

man(1), apropos(1), whatis(1), manpath(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community