How to Automatically Install Homebrew in China (China-Hosted URLs) (Mac & Linux)
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

Automated scripts (all URLs hosted in China) (copy one of the commands below, paste it into your terminal, and press Enter)
Mac Standard installation script (recommended, full version, installs in a few minutes):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Mac Fast installation script (minimal version, installs in a few seconds):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed
-> How to open Terminal on a Mac: press command+Space, type terminal in Spotlight, and press Enter.
Mac Uninstall script:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
For common errors, see the URL below
https://gitee.com/cunkai/HomebrewCN/blob/master/error.md
Linux Installation script:
rm Homebrew.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh ; bash Homebrew.sh
Linux Uninstall script:
rm HomebrewUninstall.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh ; bash HomebrewUninstall.sh
Original source: https://zhuanlan.zhihu.com/p/111014448
Last updated 2024-01-14
Comments 0