brew 更换国内源(镜像)
生活随笔
收集整理的這篇文章主要介紹了
brew 更换国内源(镜像)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
cd /usr/local
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update
如果速度還是很慢,可以嘗試以下操作: 然后重試update。
cd ~/tmp git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.git rm -rf /usr/local/.git rm -rf /usr/local/Library cp -R homebrew/.git /usr/local/ cp -R homebrew/Library /usr/local/使用homebrew-science或者homebrew-python
cd /usr/local/Library/Taps/homebrew/homebrew-science git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-science.git cd /usr/local/Library/Taps/homebrew/homebrew-python git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-python.git brew update?
來源:http://mirrors.tuna.tsinghua.edu.cn/help/#homebrew
轉載于:https://www.cnblogs.com/imarno/p/5169437.html
總結
以上是生活随笔為你收集整理的brew 更换国内源(镜像)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【python常用模块】os.path
- 下一篇: [转载][记录]javascript生成