Created
May 10, 2017 13:20
-
-
Save skokhanovskiy/6dc25bf1a28766ede862f36908083b21 to your computer and use it in GitHub Desktop.
Get list of a manually installed packages sorted by size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-mark showmanual | while read -r package; do size=$(apt-cache --no-all-versions show $package | grep '^Installed-Size: ' | cut -f2 -d':' | xargs) && echo "$package $size"; done | sort -rnk2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment