![]() |
|
#1
|
||||
|
||||
|
I uninstalled Clamav using Synaptic, and "locate clam" in a terminal found a lot of leftover files. Using Nautilus as root, I located most of them, but not all. The "rm" command also doesn't locate them. Why does "locate" continue to list these files?
edit: Ubuntu 9.04 Regards, Last edited by Judge Dee : June 19th, 2009 at 02:29 PM. |
|
#2
|
||||
|
||||
|
Run updatedb as root. In Ubuntu that's sudo updatedb.
__________________
The GNU Operating System - The GNU Project / Linux Kernel - Linux Foundation / Debian GNU/Linux Electronic Frontier Foundation (EFF) / The Free Software Foundation (FSF) / Creative Commons (CC) / Foundation for a Free Information Infrastructure (FFII) / Free Software Magazine |
|
#3
|
||||
|
||||
|
Pedro, it cleared the references.
My thanks. What is the reason? |
|
#4
|
|||
|
|||
|
locate uses a stored database of file system contents for the purpose of providing very fast responses to requests. It doesn't scan the directories real-time when you issue a locate command. The updatedb command refreshes that database. So, when you add or remove any file(s), locate will not reflect those change(s) until the next updatedb is executed.
Servers usually have a cron job, running perhaps once daily, to execute the updatedb automatically. |
|
#5
|
||||
|
||||
|
Another mystery - for me - cleared up. Thanks, LWM.
Regards, |
|
#6
|
||||
|
||||
|
Sorry if i sounded rather cryptic, i was kind of rushing it. (not you, just the computer!)
Anyway LWM explained it better than i would. You can also read the manual pages on locate and updatedb with man updatedb and man locate where their purpose and usage are explained (q to exit).
__________________
The GNU Operating System - The GNU Project / Linux Kernel - Linux Foundation / Debian GNU/Linux Electronic Frontier Foundation (EFF) / The Free Software Foundation (FSF) / Creative Commons (CC) / Foundation for a Free Information Infrastructure (FFII) / Free Software Magazine |
|
#7
|
||||
|
||||
|
Quote:
Hey, no problem, Pedro. You solved the main issue for me. Thanks for the manuals. Going to read them now. Regards, |
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|