LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2009, 07:37 AM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
Realtime alternative to locate&updatedb


What program can i use to index my disk in real time and work with the features of locate? I saw something like that in Easy Peasy, there i just didn't have to run updatedb, and i got all the changes to database just as they occurred.
 
Old 04-10-2009, 03:49 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The standard tool to find files in linux, surprisingly, is called "find". That doesn't need any database. However, also unsurprisingly, it's slow compared to slocate since it has to search all the files each time you invoke it.

I think that gnome can use something called "beagle", don't ask me how it works though. In kde there's akonadi (only 4.x), I haven't experience with it either.
 
Old 04-10-2009, 03:50 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Please describe difference between what you want and what "find" provides.
 
Old 04-10-2009, 04:39 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by raskin View Post
Please describe difference between what you want and what "find" provides.
The difference is that find can take minutes or even more to find something in a big fs, while slocate is instantaneous. He would like something that can find files that haven't been registered by updatedb, but that doesn't take ages to find a single file in your fs.

I just remembered something from the past. I remember something called rlocate, which achieves what he wants. The big problems are these:
  • it requires a kernel module, always a pain overall if you care about stability and security. In other words: after years of development: why hasn't it been included upstream in the kernel?
  • it seems pretty much unmaintained code, I don't even know whether it compiles against modern kernels or not

There's also mlocate, which is an alternative to slocate which in my humble opinion performs a lot better. It's not what he was looking for, but it's certainly an improvement over regular slocate. It's compatible and can be installed in place or slocate.
 
Old 04-11-2009, 04:37 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
take a look at beagle
http://beagle-project.org/Main_Page
 
Old 04-11-2009, 01:08 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Be aware that beagle can use a lot of system resources at inopportune times.
 
Old 04-15-2009, 08:22 AM   #7
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
Quote:
There's also mlocate, which is an alternative to slocate which in my humble opinion performs a lot better.
I looked in synaptic in ubuntu, ubuntu seems to use mlocate. I just didn't know how it could be called until you said

Quote:
Be aware that beagle can use a lot of system resources at inopportune times.
Is it true for inotify-supporting install?
 
Old 04-15-2009, 09:16 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Beagle can work with or without inofity. Without inotify it won't detect the changes on the fly of course.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locate updatedb konfigure Mandriva 3 02-03-2008 09:50 PM
locate & updatedb Wicus001 Linux - Software 2 09-27-2007 05:39 AM
locate and updatedb commands are not available guy_ripper Linux - Software 8 10-28-2006 02:39 AM
updatedb / locate doesn't appear to work allelopath Linux - Software 5 08-28-2005 10:55 PM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration