Install Updatedb On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

Install Updatedb On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

updatedb

Create or update the database used by `locate`.
It is usually run daily by cron.

Maintainer: Tollef Fog Heen



Section: utils

Install updatedb

  • Debian apt-get install mlocate Click to copy
  • Ubuntu apt-get install mlocate Click to copy
  • Alpine OS apk add mlocate Click to copy
  • Arch Linux pacman -S mlocate Click to copy
  • Kali Linux apt-get install mlocate Click to copy
  • CentOS yum install mlocate Click to copy
  • Fedora dnf install mlocate Click to copy
  • Raspbian apt-get install mlocate Click to copy

Create or update the database used by `locate`. It is usually run daily by cron.

How to use updatedb?

Below are few example commands for updatedb that you can use in the terminal.

Refresh database content:
sudo updatedbClick to copy
Display file names as soon as they are found:
sudo updatedb --verboseClick to copy
To install the latest version of updatedb in your favorite operating system just copy the updatedb installation command from above and paste it into terminal. It will download and install the latest version of updatedb 2026 package in your OS.