1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

Merge pull request #2597 from githubhjs/master

List pkgs by size
This commit is contained in:
Robby Russell 2014-03-16 20:45:18 -07:00
commit 81d53af971

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}'
}