macOS飞速安装Homebrew教程
通过国内镜像安装homebrew
终端执行以下命令
/bin/bash -c “$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)”
默认使用中科大源。
如果命令执行中卡在下面信息:
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
请Control + C中断脚本执行如下命令:
cd “$(brew --repo)/Library/Taps/”
mkdir homebrew && cd homebrew
git clone https://mirrors.ustc.edu.cn/homebrew-core.git
成功执行之后重新执行安装命令。
如何卸载 Homebrew
使用官方脚本同样会遇到uninstall地址无法访问问题,可以使用下面脚本:
/bin/bash -c “$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/uninstall.sh)”