[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg v2 ? I haven't heard about it, but ...



On Wed, Jul 21, 1999 at 05:36:32PM -0500, Adam Heath wrote:
> On Wed, 21 Jul 1999, Ian Jackson wrote:
> 
> Oh, another point.
> 
> *.list handling is way inefficient.  It is faster for me to grep the
> .list files, then for me to do dpkg -S.  And that is on a celeron
> 300/256m.

yep, most of the query functions in dpkg are horrendously slow (which is
not suprising considering that there are over 3500 packages in debian
now). take a look at the new package dlocate i uploaded recently which
is a workaround to this problem for 'dpkg -L', 'dpkg -S', and 'dpkg -s'.

it makes use of GNU locate, so is much faster than even grepping *.list.

dlocate also provides a few other useful features like the ability to
view and check md5sums, list all man pages allowing command lines like
"man $(dlocate -man PACKAGE)", show disk utilisation of all files in a
package with 'du -sck', list conffiles, and do 'ls -ldF' on either all
files or conffiles in the package.


BTW: dlocate works, but it makes assumptions about the files under
/var/lib/dpkg. these haven't changed for years, but it's an evil thing
to do on principle. however, practicality wins over theory - if the
files ever change, i'll modify dlocate appropriately.

craig

--
craig sanders


Reply to: