[英]Sorting Installed BREW Packages by Install Size
I know I can brew ls
to get a summary of everything I have installed using Homebrew. 我知道我可以brew ls
来获得我使用Homebrew安装的所有内容的摘要。 I was recently cleaning up some unused packages and was a bit surprised that mysql was taking up 1.7Gb. 我最近清理了一些未使用的软件包,有点惊讶的是mysql占用了1.7Gb。
Is there some way I can sort the list, or at least get more information, for install size on all of my packages directly in the Terminal? 有没有什么方法可以直接在终端上对我的所有软件包上的安装大小排序列表,或至少获取更多信息?
I would do which brew
, get to that dir eg ( /usr/local/Cellar
) then do 我会做which brew
,去那个目录,例如( /usr/local/Cellar
)然后做
brew install coreutils
du -hs * | gsort -h
du -hs * | gsort -h
it will show sizes of directories du -hs * | gsort -h
它将显示目录的大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.