mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
List pkgs by size
This commit is contained in:
parent
6b3c953775
commit
ae2f6f34e3
1 changed files with 8 additions and 0 deletions
|
@ -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}'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue