MAC下的homebrew安裝及映象調整

小野先生的家發表於2024-05-15

一、安裝

未記錄

二、映象調整

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

相關文章