How To Install mlocate (locate and updatedb) on Fedora 23

The locate command is an invaluable tool when you’re trying to track down a particular file but know only the file name. Locate reads one or more databases prepared by the related updatedb and writes file names matching at least one of the patterns to standard output, one per line.

Pre-Flight Check

Step #1: Install mlocate

We’ll first update our packages:

dnf -y update

Then we’ll install mlocate and any required packages:

dnf -y install mlocate

Step #2: Updating mlocate

Upon installation, mlocate installs a systemd timer to regularly update the search database. However, you can manually trigger an update of the search databases with:

updatedb
 

How to Install mlocate (locate and updatedb Commands) on CentOS 6

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 CentOS 6.
  • I’ll be working from a Liquid Web Self Managed CentOS 6 server, and I’ll be logged in as root.

Continue reading “How to Install mlocate (locate and updatedb Commands) on CentOS 6”

How to Install mlocate (locate and updatedb Commands) on Fedora 21

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 21.
  • I’ll be working from a Liquid Web Self Managed Fedora 21 server, and I’ll be logged in as root.

Continue reading “How to Install mlocate (locate and updatedb Commands) on Fedora 21”

How to Install mlocate (locate and updatedb Commands) on Fedora 20

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.

Continue reading “How to Install mlocate (locate and updatedb Commands) on Fedora 20”

How to Install mlocate (locate and updatedb Commands) on CentOS 7

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 CentOS 7.
  • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

Continue reading “How to Install mlocate (locate and updatedb Commands) on CentOS 7”