Display all installed Ubuntu packages sorted by size

dpkg-query -W -f'${Package}\t${Installed-Size}\t${Status}\n' |\
awk '/installed$/ { print $2 "\t" $1 }' |sort -n

Posted

in

by

Tags: