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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-09-2009, 07:37 AM
|
#1
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Rep:
|
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.
|
|
|
04-10-2009, 03:49 PM
|
#2
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
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.
|
|
|
04-10-2009, 03:50 PM
|
#3
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
Please describe difference between what you want and what "find" provides.
|
|
|
04-10-2009, 04:39 PM
|
#4
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by raskin
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.
|
|
|
04-11-2009, 04:37 AM
|
#5
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
|
|
|
04-11-2009, 01:08 PM
|
#6
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
Be aware that beagle can use a lot of system resources at inopportune times.
|
|
|
04-15-2009, 08:22 AM
|
#7
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Original Poster
Rep:
|
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?
|
|
|
04-15-2009, 09:16 AM
|
#8
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Beagle can work with or without inofity. Without inotify it won't detect the changes on the fly of course.
|
|
|
All times are GMT -5. The time now is 03:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|