1、替换brew.git 仓库地址:
1.进入目录:
cd "$(brew --repo)"
2.替换源:
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
3.查看源
git remote -v
2、brew常用命令
1.安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
官网这个安装不了,又找了个新的安装命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2.卸载
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
3.更新brew
brew update
4.查找服务
brew search xxx
5.安装服务
brew install xxx
6.更新服务
brew upgrade xxx