#100781 locate unusable when installed (db created only at next cron run)

Package:
locate
Source:
findutils
Description:
maintain and query an index of a directory tree
Submitter:
Galen Hancock
Date:
2010-09-04 15:54:02 UTC
Severity:
wishlist
#100781#5
Date:
2001-06-14 03:14:59 UTC
From:
To:
Immediately after installing findutils, I get errors of the form:

kasumi% locate foo
locate: /var/lib/locate/locatedb: No such file or directory

This prevents one from using locate on a new system. On a new
installation of findutils, the database should be built automatically.

(It might be nice if the process to do so waited in the background a
while--say until dpkg or apt exits--to give time for other packages to
be installed and the filesystem to settle down.)

					Galen

#100781#10
Date:
2001-06-14 09:05:59 UTC
From:
To:
Thanks for reporting this bug.

Does locate work after the nightly updatedb runs?  Did you install
findutils on a machine which didn't have findutils installed, or is
this a fresh installation?  Assuming that updatedb runs after the
nightly cron job, I will change this to a wishlist item.

Galen Hancock <galen@CSUA.Berkeley.EDU> writes:

#100781#15
Date:
2001-06-14 19:18:24 UTC
From:
To:
This was a fresh installation. (I assume the same result would have
occured if the system didn't have findutils already installed.)

Apparantly updatedb hasn't run yet, as I forgot to install anacron and
the system was off last night, but I'm sure it will work once updatedb
runs.

Changing this to a wishlist item sounds appropriate.

					Galen