diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-16 20:45:18 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-16 20:45:18 -0700 |
commit | 81d53af97157fff02491ea2ed05307ce5e37c7ec (patch) | |
tree | 44183b0174c460cd6f22ed525ccb9016456f8366 /plugins/debian/debian.plugin.zsh | |
parent | 12415a99d25beee8957fb93a49390901e3e134b2 (diff) | |
parent | ae2f6f34e3c3a335d6cb16df8ea88a709ef6b36b (diff) | |
download | zsh-81d53af97157fff02491ea2ed05307ce5e37c7ec.tar.gz zsh-81d53af97157fff02491ea2ed05307ce5e37c7ec.tar.bz2 zsh-81d53af97157fff02491ea2ed05307ce5e37c7ec.zip |
Merge pull request #2597 from githubhjs/master
List pkgs by size
Diffstat (limited to 'plugins/debian/debian.plugin.zsh')
-rw-r--r-- | plugins/debian/debian.plugin.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index 1e15487ba..28dfb82a5 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -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}' +} + |