美文网首页
MAC brew update镜像源切换

MAC brew update镜像源切换

作者: kattes | 来源:发表于2020-02-25 14:10 被阅读0次

    阅读借鉴 https://www.cnblogs.com/demingblog/p/11436602.html

    (1)brew config查看现在镜像源(ORIGIN:https://github.com/Homebrew/brew.git 之前未操作过则会显示这个链接,也就是官方镜像源)

    (2)替换 brew.git

    cd"$(brew --repo)"git remoteset-url origin https://mirrors.ustc.edu.cn/brew.git

    (3)替换 homebrew-core.git

    cd"$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remoteset-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

    (4)brew config查看更换后的镜像源(ORIGIN: https://mirrors.ustc.edu.cn/brew.git 说明更换成功)

    然后再次进行brew update就可以了,感谢此原作者  ^_^ !

    相关文章

      网友评论

          本文标题:MAC brew update镜像源切换

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