國內在使用homebrew更新的時候因為網路原因最會非常慢,所以查了換清華源的方案。
注:該映象是 homebrew 的 formula 索引的映象(即 brew update 時所更新內容)。
git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
brew update
git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
brew update
注:該映象是 homebrew 二進位制預編譯包的映象。
export homebrew_bottle_domain=
echo 'export homebrew_bottle_domain=' >> ~/.bash_profile
source ~/.bash_profile
Mac下使用國內映象安裝Homebrew
根據官網上的方法,在終端輸入 usr bin ruby e curl fssl 依文中所述,進行安裝。由於官方棄用了舊的homebrew倉庫,將homebrew程式與軟體包拆分成了兩個倉庫。與文中描述不符,也未能成功安裝。於是稍作修改,記錄於此。新增brew.git與homebrew core.gi...
Mac下使用國內映象安裝Homebrew
根據官網上的方法,在終端輸入 usr bin ruby e curl fssl 依文中所述,進行安裝。由於官方棄用了舊的homebrew倉庫,將homebrew程式與軟體包拆分成了兩個倉庫。與文中描述不符,也未能成功安裝。於是稍作修改,記錄於此。新增brew.git與homebrew core.gi...
Mac飛速安裝homebrew 國內映象版本
homebrew預設安裝指令碼 有翻牆都不好使 usr bin ruby e curl fssl 安著安著你就想把電腦砸掉,因為會出各種錯誤 比如這樣的 curl 7 failed to connect to raw.githubusercontent.com port 443 operation ...