首页 > 其他 > 详细

Homebrew 替换中科大源

时间:2021-08-11 15:36:36      阅读:22      评论:0      收藏:0      [点我收藏+]
技术分享图片
# 替换各个源
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

# zsh 替换 brew bintray 镜像
$ echo export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles >> ~/.zshrc
$ source ~/.zshrc

# bash 替换 brew bintray 镜像
$ echo export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles >> ~/.bash_profile
$ source ~/.bash_profile

# 刷新源
$ brew update

 摘自: https://cloud.tencent.com/developer/article/1614039

Homebrew 替换中科大源

原文:https://www.cnblogs.com/wender/p/15127523.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!