List pkgs by size

This commit is contained in:
Josh Chih-Hsueh Huang 2014-03-11 11:29:25 +08:00
parent 6b3c953775
commit ae2f6f34e3

View File

@ -217,3 +217,11 @@ kerndeb () {
"$revision" kernel_image kernel_headers
}
# List packages by size
function apt-list-packages {
dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | \
grep -v deinstall | \
sort -n | \
awk '{print $1" "$2}'
}