A good package manager for MacOS is Homebrew.

However, when using the command installation on homebrew official website in China, there is always a worrying situation of no installation progress or slow download. The following uses a domestic mirror to resolve this situation

Direct command execution

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

The installation selection command appears after you enter the command. Just follow the prompts. I chose 1 here.

Then execute the script as prompted. The download speed is going through the roof.

Turn: zhuanlan.zhihu.com/p/111014448