Skip to content

Instantly share code, notes, and snippets.

@alexrashed
Created November 10, 2021 08:16
Show Gist options
  • Save alexrashed/159748c93303bc20a0bbe275194cb9fd to your computer and use it in GitHub Desktop.
Save alexrashed/159748c93303bc20a0bbe275194cb9fd to your computer and use it in GitHub Desktop.
Biggest packages in Alpine and Debian (human readable)
# Alpine
apk add coreutils
apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | numfmt --field=1 --to=iec-i --suffix=B | sort -rh | head -n20
# Debian
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | awk '{print $1,$2}' | numfmt --field=1 --from-unit=1024 --to=iec-i --suffix=B | sort -rh | head -n20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment