Created
November 3, 2016 13:33
-
-
Save meetmatt/d5dd2ecae37fbabb483dffba2d6dbec6 to your computer and use it in GitHub Desktop.
Show installed packages reverse sorted by size in alpine
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
apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apk info 2>&1 | xargs -n1 -I{} apk info -s {} 2>&1 | grep -v "No such file" | xargs -n5
This one works for me on latest alpine:3.15.0