关于homebrew:brew-使用-brew-切换源-brew-cask使用

==更换 Homebrew 源==

应用以下命令更换国内阿里云上的 homebrew 镜像:

替换 brew.git:

cd “$(brew –repo)”

git remote set-url origin

https://mirrors.aliyun.com/ho…

替换 homebrew-core.git:

cd “$(brew –repo)/Library/Taps/homebrew/homebrew-core”

git remote set-url origin

https://mirrors.aliyun.com/ho…

替换 homebrew-bottles:

echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/ho… >> ~/.zshrc
source ~/.zshrc

替换 homebrew-cask.git:

cd “$(brew –repo)”/Library/Taps/homebrew/homebrew-cask

git remote set-url origin

https://mirrors.ustc.edu.cn/h…


brew doctor 查看是什么起因不能下载

brew update –verbose

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理