Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-25-2005, 05:44 PM   #1
Registered: Sep 2003
Posts: 69

Rep: Reputation: 15
how to configure updatedb to update locate database manually

Now updatedb runs everyday automatically. I want to run it manually.

My system is Ubuntu.
the content of updatedb.conf in /etc is as follows:

# This file sets environment variables which are used by updatedb

# filesystems which are pruned from updatedb database
PRUNEFS="NFS nfs afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs"
export PRUNEFS
# paths which are pruned from updatedb database
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs"
# netpaths which are added
# run find as this user
# cron.daily/find: run at this priority -- higher number means lower priority
# (this is relative to the default which cron sets, which is usually +5)
export NICE


Old 11-25-2005, 06:07 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Open a console window and cd to /etc/cron.daily. Do ls, and you should see a shell script named updatedb. All the scripts in cron.daily will be run by cron on a daily basis.

You have four options:
1) Move the file to some other place for safe keeping. I would advise editing the file to add a comment: the directory the file belongs in before moving. If you ever need to recover it for whatever reason, you will have it and only need to move it back to /etc/cron.daily.
2) Delete it. Read 1) above.
3) Rename it. Probably won't help. The scripts in cron.daily will probably be run, no matter what they are named.
4) Remove the executable bit: chmod -x updatedb. However, that will probably generate an error message every time cron encounters a non-executable script in cron.daily.

Last edited by bigrigdriver; 11-25-2005 at 06:11 PM.
Old 11-28-2005, 03:45 AM   #3
Registered: Sep 2003
Posts: 69

Original Poster
Rep: Reputation: 15
thanks a lot for your information. I just want to let you know that the name of the script is called slocate

thanks very much again, u helped me out
Old 12-02-2005, 06:58 PM   #4
LQ Newbie
Registered: Nov 2005
Posts: 19

Rep: Reputation: Disabled
what application / software does install this updatedb.conf file???

What database is used for this?

Is there some RPM's that comes with these files??

Could anyone help me on this?

Old 12-22-2010, 02:05 PM   #5
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25
For those wondering where you find the 'updatedb' command.

In reference to the last post, if you're looking for which package contains 'updatedb', see here:

# rpm -ql mlocate
On some machines, it might be slocate.

Hope this helps!

Happy 2011!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
updatedb / locate doesn't appear to work allelopath Linux - Software 5 08-28-2005 10:55 PM
What is the equivlent of locate and updatedb in suse? abefroman SUSE / openSUSE 2 05-07-2005 06:13 PM
Frontend for Updatedb and Locate? tbeehler Linux - Software 4 02-13-2004 10:07 AM
Updatedb and Locate - commands not found rodviking Linux - Software 3 11-17-2003 12:41 AM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 06:28 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration