• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mandb: command not found

by Deepika

“mandb” is a command used in Unix-like operating systems for managing the manual page (man) database. The man pages are pre-formatted manual pages that provide information about system commands and tools.

The mandb command updates the man page database to ensure that it contains the latest information about the installed software and commands. This is done by scanning the directories specified in the MANPATH environment variable and creating or updating the database with the information found in the man pages.

Using the mandb command can be useful in situations where new software is installed or existing software is updated and new man pages are added. By running mandb, you can make sure that the man page database is up-to-date and the latest information is available to users.

If you encounter the below error while running the command mandb:

mandb: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install man-db
Ubuntu apt-get install man-db
Arch Linux pacman -S man-db
Kali Linux apt-get install man-db
CentOS yum install man-db
Fedora dnf install man-db
Raspbian apt-get install man-db

mandb Command Examples

1. Purge and process manual pages:

# mandb

2. Update a single entry:

# mandb --filename path/to/file

3. Create entries from scratch instead of updating:

# mandb --create

4. Only process user databases:

# mandb --user-db

5. Do not purge obsolete entries:

# mandb --no-purge

6. Check the validity of manual pages:

# mandb --test

Filed Under: Linux

Some more articles you might also be interested in …

  1. lvcreate: command not found
  2. mimetype Command Examples in Linux
  3. mkfs.hfsplus: command not found
  4. arp: command not found
  5. a2dissite: command not found
  6. EMC PowerPath Powermt Commands (Cheat Sheet)
  7. debuild Command Examples in Linux
  8. find: command not found
  9. git archive: Create an archive of files from a named tree
  10. makepkg Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright