1258

Macos更换Homebrew为腾讯源

安装homebrew

如果还未安装homebrew的话,使用以下命令安装

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

卸载命令

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

Step1:更换brew源

查看

cd "$(brew --repo)" && git remote -v

更换

git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git

Step2:更换homebrew-core源(注意:brew v4 不需要此步)