Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried "locate libevent", but it doesn't work. and nothing happens.

share|improve this question
up vote 6 down vote accepted

You may have to run updatedb first, though it's often set up to run automatically.

Are you certain that path exists which includes libevent? If not try searching for something you know exists (etc, your home directory, and so on)

share|improve this answer
Also if the file has been recently installed (today) there's a very good chance you need to run updatedb. – C. Ross Oct 8 '09 at 17:57

As already mentioned, locate uses a proprietary database which contains all filenames of the system (or at least of the directories which have been configured to be included in this database). To (re-) build this database you need to run updatedb.

You could also use find (e. g. find / -name 'libevent*') to search for the file which will take longer (depending on the size of your harddisk) but needs no database.

share|improve this answer

locate silently returns nothing when it doesn't find what you requested.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.