David Killingsworth's picture

I'm using trac-11.0-lucid-x86 as an Amazon EC2 AMI.

I noticed that I could not use "locate" or "mlocate" commands.

$ locate test
-bash: locate: command not found

I looked and could not find the files in /usr/bin/ nor updatedb.sh

I tried installing findutils and it says that it is already installed.

root@servername /# apt-get install findutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
findutils is already the newest version.


I was under the impression that these were part of Ubuntu 10.04 LTS core.

Jeremy Davis's picture

But TKL is build from scratch using an Ubuntu 10.04 based JeOS with Ubuntu 10.04 packages rather than a reduced/improved Ubuntu 10.04 Server install.

locate and mlocate appear to be separate packages, try:

apt-get update && apt-get install locate mlocate

David Killingsworth's picture

Thanks, I'll grab mlocate as it looks like it's now recommended and more efficient.

And of course, I could always use "find" but I was pretty used to using locate.



Add new comment