LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-25-2005, 05:44 PM   #1
septanla
Member
 
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"
export PRUNEPATHS
# netpaths which are added
NETPATHS=""
export NETPATHS
# run find as this user
LOCALUSER="nobody"
export LOCALUSER
# 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)
NICE=10
export NICE


Thanks!

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

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
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
septanla
Member
 
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
js_valencia
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?

GreetZzZz
 
Old 12-22-2010, 02:05 PM   #5
bluesword1969
Member
 
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:

Code:
# rpm -ql mlocate
/etc/cron.daily/mlocate.cron
/etc/updatedb.conf
/usr/bin/locate
/usr/bin/updatedb
/usr/share/doc/mlocate-0.15
/usr/share/doc/mlocate-0.15/AUTHORS
/usr/share/doc/mlocate-0.15/COPYING
/usr/share/doc/mlocate-0.15/NEWS
/usr/share/doc/mlocate-0.15/README
/usr/share/locale/cs/LC_MESSAGES/mlocate.mo
/usr/share/man/man1/locate.1.gz
/usr/share/man/man5/mlocate.db.5.gz
/usr/share/man/man5/updatedb.conf.5.gz
/usr/share/man/man8/updatedb.8.gz
/var/lib/mlocate
/var/lib/mlocate/mlocate.db
On some machines, it might be slocate.

Hope this helps!

Happy 2011!
 
  


Reply


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/Novell 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


All times are GMT -5. The time now is 09:28 PM.

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