Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old June 19th, 2009, 02:16 PM
Judge Dee's Avatar
Judge Dee Judge Dee is offline
Frequent Poster
 
Join Date: Jan 2008
Posts: 312
Default Why "locate" finds leftover Clamav, Nautilus doesn't

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  
Old June 19th, 2009, 02:33 PM
Pedro's Avatar
Pedro Pedro is offline
Massive Poster
 
Join Date: Nov 2006
Posts: 3,492
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

Run updatedb as root. In Ubuntu that's sudo updatedb.
  #3  
Old June 19th, 2009, 03:40 PM
Judge Dee's Avatar
Judge Dee Judge Dee is offline
Frequent Poster
 
Join Date: Jan 2008
Posts: 312
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

Pedro, it cleared the references.
My thanks.
What is the reason?
  #4  
Old June 19th, 2009, 03:48 PM
LowWaterMark LowWaterMark is offline
Administrator
 
Join Date: Aug 2002
Location: New England
Posts: 15,525
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

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  
Old June 19th, 2009, 03:51 PM
Judge Dee's Avatar
Judge Dee Judge Dee is offline
Frequent Poster
 
Join Date: Jan 2008
Posts: 312
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

Another mystery - for me - cleared up. Thanks, LWM.

Regards,
  #6  
Old June 19th, 2009, 06:27 PM
Pedro's Avatar
Pedro Pedro is offline
Massive Poster
 
Join Date: Nov 2006
Posts: 3,492
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

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).
  #7  
Old June 19th, 2009, 11:18 PM
Judge Dee's Avatar
Judge Dee Judge Dee is offline
Frequent Poster
 
Join Date: Jan 2008
Posts: 312
Default Re: Why "locate" finds leftover Clamav, Nautilus doesn't

Quote:
Originally Posted by Pedro
Sorry if i sounded rather cryptic,

Hey, no problem, Pedro. You solved the main issue for me.
Thanks for the manuals. Going to read them now.

Regards,
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:32 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums