URCloud

/ 1评 / 0/ 最后更新:2020-02-12
homebrew更新慢,更换为国内镜像源

需求场景

由于墙的原因,brew update速度可能会比较慢,所以可以更换国内镜像源加快更新速度。

解决方案

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

替换成中科大镜像源之后,记得brew update -v一下

0
  1. ChuHai5 says:

    秒赞不是偶然,是一种态度!

Leave a Reply

Your email address will not be published.