Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 17158  / 2 Years ago, wed, october 5, 2022, 12:48:20

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


I read this:



default setting, 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 that is for Fedora.


More From » locate

 Answers
7

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

[#34828] Thursday, October 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suitman

Total Points: 487
Total Questions: 105
Total Answers: 98

Location: India
Member since Wed, Aug 4, 2021
3 Years ago
;