美文网首页
brew 替换镜像

brew 替换镜像

作者: 1b1bd2eb600a | 来源:发表于2018-10-31 23:22 被阅读17次

    替换现有上游
    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
    使用homebrew-science或者homebrew-python
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-science"
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-science.git

    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-python"
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-python.git

    brew update

    相关文章

      网友评论

          本文标题:brew 替换镜像

          本文链接:https://www.haomeiwen.com/subject/zhaztqtx.html