mac cleanup sh
v1.1.9: Merge pull request #89 from jrodan
brew tap fwartner/tap
brew install fwartner/tap/mac-cleanup如果您会看到
Error: SHA256 mismatch尝试以下操作:
- 从错误中复制“实际”哈希
- 运行
brew edit fwartner/tap/mac-cleanup- 按
I和更改sha256 "<some hash>"从步骤1开始哈希- 按
:,然后wqEnter- 重新运行安装
brew install fwartner/tap/mac-cleanup
curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh | bash -s installwget https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh -O - | bash -s installcurl -o cleanup https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/mac-cleanupchmod +x cleanupsudo mv cleanup /usr/local/bin/cleanup如果安装卷发,则需要调用cleanup而不是mac-cleanup 。
curl -fsSL " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " | bash -s updatewget " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " -O - | bash -s updatecurl -fsSL " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " | bash -s uninstallwget " https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh " -O - | bash -s uninstall帮助菜单:
$ mac-cleanup -h
A Mac Cleanup Utility by fwartner
https://github.com/mac-cleanup/mac-cleanup-sh
USAGE:
mac-cleanup [FLAGS]
FLAGS:
-h, --help Prints help menu
-d, --dry-run Print approx space to be cleaned
-v, --verbose Print script debug info
-u, --update Run brew update
由于所有贡献的人,该项目的存在。
如果您喜欢我正在做的事情,请考虑赞助我的工作!