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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. ‘error opening class fc_host’ – systool Command Error on CentOS/RHEL 7 and 8
  2. bmon Command Examples in Linux
  3. CentOS / RHEL : How to add, delete and display LVM tags
  4. What is the purpose of .bashrc file in Linux
  5. dumpe2fs Command Examples in Linux
  6. Active Directory Users Unable to Login via SSH using SSSD and Getting “Permission Denied, Please Try Again” [CentOS/RHEL]
  7. makepkg: command not found
  8. dunstify: command not found
  9. How To Create a Local Yum Repository for MySQL Enterprise Packages
  10. btrfs Command Examples in Linux (cheat sheet)

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright