一、安装

1. 普通安装

1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

可能会出现如下错误:
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75013 ms: Operation timed out

2. 使用国内源安装

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