Commit ae2f6f34 authored by Josh Chih-Hsueh Huang's avatar Josh Chih-Hsueh Huang
Browse files

List pkgs by size

parent 6b3c9537
...@@ -217,3 +217,11 @@ kerndeb () { ...@@ -217,3 +217,11 @@ kerndeb () {
"$revision" kernel_image kernel_headers "$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}'
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment