MAC下的homebrew安装及镜像调整
一、安装
未记录
二、镜像调整
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
#only do this below
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 install error, do this below
cd /usr/local/Homebrew/Library/Taps/homebrew/
rm -fr homebrew-core
cd /usr/local/Homebrew/Library/Taps/homebrew/
mkdir homebrew-core
cd homebrew
git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew-core.git
浙公网安备 33010602011771号