papaschtroumpf Posted May 29, 2007 Report Share Posted May 29, 2007 I did a clean install of Spring 2007 and it looks like my system doesn't have the "lcoate" command anymore. I reied as root, and I try looking for it in /sbin but it's not there is it deprecated? is it an additional package not installed by default? Quote Link to comment Share on other sites More sharing options...
jboy Posted May 29, 2007 Report Share Posted May 29, 2007 It's not included by default in 2007.1 Spring. To get it, install the mlocate package available from the standard repositories. Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted May 29, 2007 Author Report Share Posted May 29, 2007 It's not included by default in 2007.1 Spring. To get it, install the mlocate package available from the standard repositories. yeah thanks! Why is it not included through? is there a better way to find files now? Is that what that beagle icon that I haven't yet played with is about? how about command line Also I assume installing the package automagically set a cron job to run updatedb and all that jazz? Quote Link to comment Share on other sites More sharing options...
jboy Posted May 29, 2007 Report Share Posted May 29, 2007 According to the 2007.1 Errata, it was left out because of space considerations: Errata note about mlocate package I don't know if it automatically sets up a cron job to update the database (but I doubt it). My machines are never on 24x7, so I just update the database manually using the updatedb command. Quote Link to comment Share on other sites More sharing options...
arctic Posted May 29, 2007 Report Share Posted May 29, 2007 As Mandriva is desktop oriented, I guess that they voluntarily left mlocate out of the default installation ( I don't believe their "lack of space" argument. My DVD still has some 400 MB of free space left!). Now that there are tools like beagle, they probably don't expect people to know of and/or use mlocate. Let's face it: Many people are happy that they can do their searches without using the command line, which is kind of scary and ugly... Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 29, 2007 Report Share Posted May 29, 2007 Beagle is hardly a replacement for mlocate... but surely it's heaven sent, after the ever infamous kat disaster! :P Still, even beagle uses a LOT of resources... but at least it does work, and it does not crash the whole desktop randomly. Quote Link to comment Share on other sites More sharing options...
tyme Posted May 29, 2007 Report Share Posted May 29, 2007 Beagle is hardly a replacement for mlocateWell, mlocate still can't beat a well written find - especially since find doesn't require you to update a database. but surely it's heaven sent, after the ever infamous kat disaster! :PBeagle was around before Kate [edit: Kat, rather] - I still don't know why Mandriva felt the need to re-invent the wheel on that one Quote Link to comment Share on other sites More sharing options...
scarecrow Posted May 29, 2007 Report Share Posted May 29, 2007 kate is a gorgeous text editor... I guess you typed one char too many! :P Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 30, 2007 Report Share Posted May 30, 2007 Either that or he was thinking of a female called kate at the time ;) I always have problems with find, I guess I'm not doing it right. find / -name bit_of_filename Quote Link to comment Share on other sites More sharing options...
neddie Posted May 30, 2007 Report Share Posted May 30, 2007 find / -iname "*bit_of_filename*" But obviously if you know vaguely where something is, it's better to start from somewhere other than /. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 30, 2007 Report Share Posted May 30, 2007 I know, mine was a rather rough example :) Quote Link to comment Share on other sites More sharing options...
iphitus Posted May 30, 2007 Report Share Posted May 30, 2007 Well, mlocate still can't beat a well written find - especially since find doesn't require you to update a database. but mlocate is sure a helluva lot faster because it has that db. and as for the database, mlocate, unlike the old slocate, takes only a matter of seconds to update it's database as it does it incrementally. slocate on the other hand, every time, rebuilds it from scratch when it updates. By default in just about every distro, the slocate/mlocate update is usually run at midnight. James Quote Link to comment Share on other sites More sharing options...
tyme Posted May 30, 2007 Report Share Posted May 30, 2007 but mlocate is sure a helluva lot faster because it has that db.Well, I've only used slocate (never tried mlocate...I don't think), and most of the time I had to do an updatedb before locating, because I was trying to find something I had just installed Quote Link to comment Share on other sites More sharing options...
adamw Posted May 30, 2007 Report Share Posted May 30, 2007 no, it really is space. we don't manually decide whether every single package in the distro is in or out of the discs. that would take ages. each package is assigned an importance level, and the first level gets on the discs first, then the second, then the third, etc... and the process cuts off when it hits whatever size limit the person running mkcd specified. no-one did anything specific to include or exclude mlocate from the ISO build. it just happened not to get on under this system. Quote Link to comment Share on other sites More sharing options...
arctic Posted May 30, 2007 Report Share Posted May 30, 2007 Mhm... okay. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.