Skip to content

Instantly share code, notes, and snippets.

@avary
Forked from eguven/brew-list.sh
Created March 10, 2021 09:59
Show Gist options
  • Save avary/ead562048cd77cbcda4fa7419d6d3f8b to your computer and use it in GitHub Desktop.
Save avary/ead562048cd77cbcda4fa7419d6d3f8b to your computer and use it in GitHub Desktop.
List all packages installed using Homebrew and their sizes
brew list --formula | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment