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

 

posted @ 2024-05-15 10:56  小野先生的家  阅读(364)  评论(0)    收藏  举报