brew源: https://www.zhihu.com/question/31360766

摘要

1. 替换formula 索引的镜像(即 brew update 时所更新内容)

cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.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

  

2. 替换Homebrew 二进制预编译包的镜像

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

  

 

pip源[ustc]

https://lug.ustc.edu.cn/wiki/mirrors/help/pypi

[global]
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple
format = columns

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-10-22
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
相关资源
相似解决方案