Brew的安裝以及切換源
阿新 • • 發佈:2021-12-27
1、安裝
現有的指令碼
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 選中科院的
2、切換源
目前切換的是阿里雲的
1、HomeBrew 安裝後 在本地 cd/usr/local/Homebrew ,然後git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
2、然後 cd/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core ,然後
3、重新整理下 檔案echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
4、brew update