Created
November 10, 2021 08:16
-
-
Save alexrashed/159748c93303bc20a0bbe275194cb9fd to your computer and use it in GitHub Desktop.
Biggest packages in Alpine and Debian (human readable)
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
# 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