您现在的位置是:网站首页> 常见问题 常见问题

mac brew 源更换

夜雨 2020-04-13 23:21 brew,源,mac 420人已围观

简介mac brew 源更换

阿里云

# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 刷新源
brew update
清华源

# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
# 刷新源
brew update




很赞哦!(6)

文章评论

夜雨

夜雨(共34篇文章)

弃我去者,昨日之日不可留
乱我心者,今日之日多烦忧
长风万里送秋雁,对此可以酣高楼
蓬莱文章建安骨,中间小谢又清发
俱怀逸兴壮思飞,欲上青天览明月
抽刀断水水更流,举杯消愁愁更愁
人生在世不称意,明朝散发弄扁舟