Mac软件管理Homebrew

安装homebrew

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"  

更换国内镜像

cd /usr/local/Homebrew
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# 替换homebrew-core.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
# 刷新源
brew update
posted @ 2021-09-06 20:33  fight139  阅读(42)  评论(0)    收藏  举报