学堂 学堂 学堂公众号手机端

homebrew 国内源

lewis 1年前 (2024-03-24) 阅读数 5 #技术
# 替换brew.git:
$ cd "$(brew --repo)"
# 清华大学:
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

# 替换homebrew-core.git:

$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

# 替换homebrew-bottles:
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=/news/upload/ueditor/image/202209/jeulzbxqlar' >> ~/.bash_profile

$ source ~/.bash_profile

# 应用生效:
$ brew update

  




版权声明

本文仅代表作者观点,不代表博信信息网立场。

热门