TurnKey Linux Virtual Appliance Library

locate and mlocate missing

david_4'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

They probably are part of Ubuntu 10.04 LTS Server

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

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.



Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)