How To Install Locate?
Maintainer: Tollef Fog Heen
Email: [email protected] .
Website: https://pagure.io/mlocate
Section: utils
Install locate
-
Debian
apt-get install mlocateClick to copy -
Ubuntu
apt-get install mlocateClick to copy -
Alpine OS
apk add mlocateClick to copy -
Arch Linux
pacman -S mlocateClick to copy -
Kali Linux
apt-get install mlocateClick to copy -
CentOS
yum install mlocateClick to copy -
Fedora
dnf install mlocateClick to copy -
Raspbian
apt-get install mlocateClick to copy
Find filenames quickly.
How to use locate?
Below are few example commands for locate that you can use in the terminal.
Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily):locate patternClick to copyLook for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`):locate */filenameClick to copyRecompute the database. You need to do it if you want to find recently added files:sudo updatedbClick to copy
To install the latest version of locate in your favorite operating system just copy the locate installation command from above and paste it into terminal. It will download and install the latest version of locate 2026 package in your OS.




