Updating locate command cache?!

Robert Kiwanuka robert.kiwanuka at gmail.com
Mon Oct 26 16:46:32 UTC 2009


This is a little puzzling!

$ ls /usr/local/lib/
python2.6
$ ls -a /usr/local/lib/
.  ..  python2.6
$ locate blas.a
/usr/local/lib/blas.a
/usr/local/lib/libblas.a
robert at latitude-ubuntu:~$ locate lapack.a
/usr/local/lib/lapack.a
/usr/local/lib/liblapack.a
$ rm /usr/local/lib/*.a
rm: cannot remove `/usr/local/lib/*.a': No such file or directory
$ locate blas.a
/usr/local/lib/blas.a
/usr/local/lib/libblas.a

Is there any way to force locate to update its cache?!
$locate --help
doesn't give any options for updating. I have rebooted twice and still the
problem persists!

Thanks,
Robert
PS: This is Ubuntu 9.04; 2.6.28-16-generic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091026/f2b41116/attachment.html>


More information about the ubuntu-users mailing list