Re: Debian-Pakete nach Groesse sortieren
#include <hallo.h>
* Al Bogner [Fri, Mar 04 2005, 03:11:06PM]:
> Wie realisiere sich ähnliches für Debian-Pakete:
> rpm -qa --queryformat '%{SIZE}\t\t%{NAME}\n' | sort -nr
>
> Mit "dpkg --get-selections" komme ich nicht weiter.
Quick-and-dirty:
dpkg --get-selections | cut -f1 | xargs dpkg -s | perl -ne '$pkg=$1 if(/^Package: (\S+)/); $a{$1}=$pkg if(/^Installed-Size: (\S+)/); sub END{for (sort(keys %a)) {print "$_\t\t $a{$_}\n";}}'
Gruss,
Eduard.
--
Russian roulette for linux:
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Still breathing, eh?"
Reply to: