您的位置:首页 > 其它

mac os安装Homebrew并替换国内源

2017-01-21 11:17 253 查看
1.安装Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.替换Homebrew默认源

cd "$(brew --repo)"

git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

3.替换Homebrew Bottles源

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile

source ~/.bash_profile

之后就可以方便使用Homebrew安装软件了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Homebrew