Commit 81d53af9 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #2597 from githubhjs/master

List pkgs by size
parents 12415a99 ae2f6f34
...@@ -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