Skip to content

Instantly share code, notes, and snippets.

@meetmatt
Created November 3, 2016 13:33
Show Gist options
  • Save meetmatt/d5dd2ecae37fbabb483dffba2d6dbec6 to your computer and use it in GitHub Desktop.
Save meetmatt/d5dd2ecae37fbabb483dffba2d6dbec6 to your computer and use it in GitHub Desktop.
Show installed packages reverse sorted by size in alpine
apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | sort -rn
@bgopalakrishnan1986
Copy link

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

@meetmatt
Copy link
Author

@bgopalakrishnan1986 thanks, it looks much cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment