Sort Installed BREW Packages by installation size

I know that I can brew lsget a summary of everything that I installed using Homebrew. I recently cleaned up some unused packages and was a bit surprised that mysql takes up 1.7Gb.

Is there any way to sort the list, or at least get more information, set the size for all my packages directly in the terminal?

+4
source share
1 answer

I would do which brew, move on to this type of eg ( /usr/local/Cellar), then do

brew install coreutils

du -hs * | gsort -h it will show directory sizes

+8
source

Source: https://habr.com/ru/post/1662575/


All Articles