> ## Content Index
> Fetch the complete content index at: https://www.binarysludge.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Install and configure locate (mlocate) on CoreOS
- URL: https://www.binarysludge.com/2015/01/17/install-and-configure-locate-mlocate-on-coreos/
- Published: 2015-01-17T16:08:00.000Z
- Updated: 2015-01-17T16:08:52.000Z
- Author: Andrew Martin
- Tags: linux, System Administration, CoreOS, #Import 2026-10-22 12:56

The [locate](http://linux.die.net/man/1/locate?ref=binarysludge.com) package is useful for getting acquianted with a filesystem. As usual, the easiest way to achieve this on CoreOS is via `toolbox` (instructions for using the default Fedora image):

```
$ toolbox
$ yum install -ty mlocate

```

`locate` ignores the `/media` mount point by default. These commands will update the `/etc/updatedb.conf` file so we can search the CoreOS host's filesystem:

```
$ sed 's/^PRUNE_BIND_MOUNTS.*/PRUNE_BIND_MOUNTS = "no"/' -i /etc/updatedb.conf
$ sed -e '/^PRUNEPATHS/!b' -e 's# /media # #' -i /etc/updatedb.conf

```

Then update the database:

```
$ updatedb
$ locate andy/.bashrc
/media/root/home/andy/.bashrc
/media/root/home/andy/.bashrc.bak

```