Created
September 24, 2015 14:32
-
-
Save anthonywong/7783cc6bdedb4e9795a1 to your computer and use it in GitHub Desktop.
Output installed packages order by size
This file contains hidden or 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
for package in $(dpkg -l | grep ^ii| awk '{ print $2 }'); do size=$(dpkg -s $package | grep Installed-Size | awk '{ print $2 }'); echo $package $size; done | sort -nr -k2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment