How to automatically install Homebrew (domestic address) Mac & Linux in China

Automatically install the script, copy the following script to the terminal, paste it and press Enter

! ! ! Note: If brew has already been installed, reinstall carefully, because the original configuration file will be overwritten ~/.zshrc, so remember to save your own configuration file

  1. Apple computer routine installation script (recommended to complete the installation in a few minutes):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
  1. Apple Computer's extremely fast installation script (the simplified version is installed in a few seconds):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed
  1. Mac uninstall script:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

Common errors go to the address below to view

https://gitee.com/cunkai/HomebrewCN/blob/master/error.md
  1. Linux computer installation script:
rm Homebrew.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh ; bash Homebrew.sh
  1. Linux computer uninstall script:
rm HomebrewUninstall.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh ; bash HomebrewUninstall.sh

If you still have problems, you can check the documentation

Guess you like

Origin blog.csdn.net/weixin_45277161/article/details/131236480