How to Install mlocate on Fedora 20

Posted on by J. Mays | Updated:
Reading Time: < 1 minute

One of the best tools for quickly finding files by filename is the locate command. The locate command reads one or more databases prepared by updatedb and writes file names matching at least one of the patterns to standard output, one per line.

Pre-Flight Check
  • These instructions are intended specifically for installing mlocate on Fedora 20.
  • I’ll be working from a Liquid Web Self Managed Fedora 20 server, and I’ll be logged in as root.

Step 1: Install mlocate

As a matter of best practice we’ll update our packages:

yum -y update

Then let’s install mlocate and any required packages:

yum -y install mlocate

Step 2: Updating mlocate

The following command will update the search databases:

updatedb

mlocate installs a cron job that will run daily to update search databases at:

/etc/cron.daily/mlocate.cron

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

Blocking IP or whitelisting IP addresses with UFW

Read Article

CentOS Linux 7 end of life migrations

Read Article

Use ChatGPT to diagnose and resolve server issues

Read Article

What is SDDC VMware?

Read Article

Best authentication practices for email senders

Read Article