Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I edit update.conf at /etc/update.conf to run everyday? This would enable me to use locate with a very recent database.

I read this:

default settig,updatedb,it has been in /etc/cron.daily and its name is slocate.cron if you want to run updatedb on startup, you can add the line updatebd to the file /etc/rc.d/rc.local.

In FC4 you must edit the file /etc/updatedb.conf and set DAILY_UPDATE=yes.

But thats for Fedora.

share|improve this question
2  
afaik Ubuntu already does this daily? –  Rinzwind Oct 20 '12 at 14:54
add comment

1 Answer

up vote 1 down vote accepted

From http://manpages.ubuntu.com/manpages/oneiric/en/man8/updatedb.8.html

updatedb is usually run daily by cron(8) to update the default database.

Check /etc/cron.daily. It should be there.


/etc/cron.daily$ ls *loc*    
mlocate
share|improve this answer
    
sure but crontab -e doesn't show me a line that does updatedb. How do I access that? Not to meddle with it but to see what its all about? –  drN Oct 20 '12 at 15:08
1  
Why would it be in crontab -e? That's old skool ;) daily events should go into /etc/daily –  Rinzwind Oct 20 '12 at 15:27
    
I checked and my system doesn't have a file or folder called daily under /etc –  drN Oct 20 '12 at 16:52
    
@drn cron.daily and its a directory. –  Rinzwind Oct 20 '12 at 18:13
add comment

Your Answer

 
discard

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.