homebrew mac 安装

2020/4/12 posted in  linux

最近由于老的homebrew网站被墙,安装的话需要重新指定到国内的清华镜像来进行安装。

注意在安装脚本之后最好更新一下操作系统,然后再在AppStore下载一个XCode。这样方便管理很多第三方插件。

下载安装脚本

https://raw.githubusercontent.com/Homebrew/install/master/install.sh

可以翻墙然后下载安装脚本install.sh

下载完之后可以将脚本中的

BREW_REPO修改为当前我们的镜像位置

BREW_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"

修改完成之后在运行 sh install.sh 安装即可