brew

  |   0 评论   |   0 浏览

brew update 很慢的时候
使用中科大的镜像
替换默认源
第一步,替换brew.git

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
第二步:替换homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
最后使用

brew update
————————————————

原文链接:https://blog.csdn.net/JerryWu145/article/details/86214908

执行brew 时候提示 没有权限操作,执行如下

sudo chown -R $(whoami):wheel /usr/local


标题:brew
作者:码农路上
地址:http://wujingjian.club/articles/2020/02/25/1582641033529.html