brew - 更換國內源


brew如果不換成國內源,安裝軟件時候可能會出問題,不是安裝不了就是速度很慢,所以使用它,更換國內游是比較好的選擇!

我更換的是清華大學開源軟件鏡像站,打開shell窗口,依次執行下面命令:

cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

brew update

全部執行完畢后,就更換成了清華大學的源了,這時,你再試一試安裝軟件!

參考:

https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

https://blog.csdn.net/jeikerxiao/article/details/72705629


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM