Read 3 year old bug, fiddled around with 'dlocate' and 'printf' and
came up with a shell function (one-liner, easy to copy, paste & run):

        dpigs_human_readable() { dpigs | while read size pname ; do 
desc=$(dlocate -s $pname | grep 'Description: ' | sed 's/Description: //') ; 
printf '%8sK %-25s %s\n'  $size "$pname" "$desc" ; done }

Which on my system outputs:

 dpigs_human_readable
  106924K openoffice.org-core       full-featured office productivity suite -- 
arch-dependent files
   84084K foomatic-db-gutenprint    OpenPrinting printer support - database for 
Gutenprint printer drivers
   83716K kde-icons-oxygen          Oxygen icon theme for KDE 4
   74376K openjdk-6-jre-headless    OpenJDK Java runtime, using Hotspot JIT 
(headless)
   66728K wine                      Microsoft Windows Compatibility Layer
   65480K sun-java5-bin             Sun Java(TM) Runtime Environment (JRE) 5.0 
(architecture dependent files)
   58232K linux-image-2.6.26-1-686  Linux 2.6.26 image on 
PPro/Celeron/PII/PIII/P4
   54148K linux-image-2.6.24-1-686  Linux 2.6.24 image on 
PPro/Celeron/PII/PIII/P4
   44724K openoffice.org-common     full-featured office productivity suite -- 
arch-independent files
   43720K qemu                      fast processor emulator

NB: the 'printf' above isn't smart about field widths.  I put 25 chars
length per Debian package name, but I've seen one 55 chars long.
Change that 25 as needed.

Might be better than nothing, pending a fix...



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

Reply via email to