Re: Debian-Pakete nach Groesse sortieren
* Al Bogner <debian@ml05a.pinguin.uni.cc>:
> 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.
* Super schnell in Perl http://wooledge.org/~greg/ds
* dpkg --get-selections |
grep ' *install' |
cut -f1 |
xargs -n 1 dpkg -s |
egrep '^(Package|Installed-Size):' |
awk '{printf( "%s: ", $2 ); getline; printf( "%s\n", $2 )}' |
sort -k2nr |
cat -n
Kai
--
» http://www.glorybox.de/
PGP 1024D/594D4132 B693 5073 013F 7F56 5DCC D9C2 E6B5 448C 594D 4132
Reply to: