[CentOS] Recommendation for a Linux alternative to Centos - ATH9K disaster

Fri Jan 28 15:49:10 UTC 2011
cpolish at surewest.net <cpolish at surewest.net>

Nico Kadel-Garcia wrote:
> One *does* have to remember the "mlocate" package's limitations. It
> doesn't browse network mounted directories, it doesn't browse /tmp or
> look for other excluded targets, and it runs with the nightly cron
> jobs. So if you're looking for files in /var/tmp/ or an NFS share, or
> files that were created an hour ago, well, it's back to "find".

It's not too hard to create auxilliary db's that index specific
directory trees, and to search them when you want eg, just recipies
from /home/food/recipies:

#! /bin/bash
export DBNAME="/usr/local/food/.locatedb"
/bin/mv -v ${DBNAME} ${DBNAME}~
/usr/bin/updatedb --output=$DBNAME --prunepaths='/usr/local/food/recipies/failed-experiments'

or something like that.


$ locate --database=/usr/local/food/.locatedb -i vanilla

Even better, in .bashrc add:

  alias drool=locate --database=/usr/local/food/.locatedb -i "


$ drool vanilla

Charles Polisher