各位都是经常 Brew cleanup 的吗?

2018-08-30 07:10:36 +08:00
 ech0x

前几天,brew cleanup 了一下,磁盘突然多出了 24 个 G。

各位都是经常性的 brew cleanup 的吗?

13854 次点击
所在节点    macOS
34 条回复
qihu3721
2018-08-30 07:38:46 +08:00
每天运行一次
#!/bin/bash
brew update && brew upgrade && brew cleanup
idlerlestat
2018-08-30 08:30:53 +08:00
update() {
if hash brew 2>/dev/null; then
echo "Updating Homebrew"
brew update
echo "Upgrading Homebrew"
brew upgrade
echo "Upgrading Homebrew Casks"
brew cu -a -y
echo "Some additional cleaning"
brew cleanup -s
find $(brew --cache) -maxdepth 2 -type f -delete
fi
}
agagega
2018-08-30 08:46:14 +08:00
128G,没办法
wu67
2018-08-30 09:07:57 +08:00
```bash
echo "$ brew update..."
brew update

echo "$ brew upgrade..."
brew upgrade

echo "$ brew cleanup..."
brew cleanup

echo "$ npm upgrade -g"
npm upgrade -g

caskapp=`brew cask list`

for app in $caskapp
do
echo "$ try upgrae" ${app}
brew cask upgrade $app
done
```
自己写的的渣渣脚本
congeec
2018-08-30 09:21:01 +08:00
brew up --cleanup
belin520
2018-08-30 09:29:37 +08:00
我也基本没有运行过,然后看到这个帖,尝试了下
==> This operation has freed approximately 889B of disk space.
这,剧本不一样啊
NSAtools
2018-08-30 09:39:33 +08:00
This operation has freed approximately 105.0MB of disk space
SKull4
2018-08-30 09:41:05 +08:00
==> This operation has freed approximately 313.6MB of disk space.
lddsb
2018-08-30 09:41:51 +08:00
如果你装了 rust 而且经常 brew upgrade 的话,你就会知道 brew cleanup 是多么重要。。
lucifer9
2018-08-30 10:14:02 +08:00
别忘了还有 brew prune
MagicRabbit0503
2018-08-30 10:15:32 +08:00
This operation has freed approximately 97.3MB of disk space.
ech0x
2018-08-30 10:41:45 +08:00
@belin520 #6 我也不知道为什么我能有这么大
haha1903
2018-08-30 10:44:26 +08:00
This operation has freed approximately 3.7GB of disk space.
ChopinWong
2018-08-30 10:45:41 +08:00
brew update
brew upgrade
brew prune
brew cleanup
bjfane
2018-08-30 11:46:13 +08:00
This operation has freed approximately 64B of disk space. 没事就会清。 哈哈
RoshanWu
2018-08-30 12:17:12 +08:00
alias bubo='brew update && brew outdated'
alias bubc='brew upgrade && brew cleanup'
alias bubu='bubo && bubc'
ck65
2018-08-30 13:12:52 +08:00
This operation has freed approximately 541.7MB of disk space.
Baka9
2018-08-30 13:17:08 +08:00
This operation has freed approximately 7GB of disk space.

第一次看到这个命令。。(
DigDeeply
2018-08-30 13:22:05 +08:00
==> This operation has freed approximately 8.9MB of disk space.
czjackjin
2018-08-30 13:49:25 +08:00
每天 upgrade,今天第一次看到可以 cleanup,多出来 2 个 g,128g 的 ssd,还是蛮可观的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/484423

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX