On Mon, Jun 07, 2010 at 04:54:07PM +0800, [email protected] wrote:
> Why can't -l find these packages?
> # update-dlocatedb
> # dlocate -l ndis|wc -l
> 0 <---why?
> # dlocate -l ndi|wc -l
> 24
> # dlocate ndis|grep -c ^ndis
> 84

update-dlocatedb updates the files listing only. it doesn't update the
package listing. this is not a bug, it's a feature - i use it to compare
the difference between what 'dlocate -l' says and what 'dpkg -l' says
after an upgrade, so i can easily get a diff of what has chanegd.

if you want to force dlocate to update the pkg listing as well as the
files listing, then run the cron script:

    /etc/cron.daily/dlocate


this is the second or third time this question has come up, so i'll
leave this bug report in the BTS to remind me to re-do the way this
works. will change it to have three command line options:

  -p, --packages      update package list only
  -f, --files         update files list only
  -b, --both          update both (will probably make this the default)

craig

-- 
craig sanders <[email protected]>



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to