• 当前位置: 首 页 > 教育百科 > 其他 > 正文

    mac brew 改成阿里镜像

    :2021年08月06日
    本站

    脚本备查:cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote ...

    脚本备查:

    cd "$(brew --repo)"

    git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

    git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile

    source ~/.bash_profile

    前两步实际上就是去/usr/local/Homebrew目录下把brew和brew-core的git路径给换了,最后一步是二进制

    源需要修改bashprofile文件改变量。

    完后再执行一次brew update

    [编辑:宋聪乔 &发表于江苏]
    [我要纠错]

    来源:本文内容搜集或转自各大网络平台,并已注明来源、出处,如果转载侵犯您的版权或非授权发布,请联系小编,我们会及时审核处理。
    声明:江苏教育黄页对文中观点保持中立,对所包含内容的准确性、可靠性或者完整性不提供任何明示或暗示的保证,不对文章观点负责,仅作分享之用,文章版权及插图属于原作者。

    关键词: 脚本 备查 quot brew --repo
    有价值
    0
    无价值
    0
    猜您喜欢
    最热文章

    暂不支持手机端,请登录电脑端访问

    正在加载验证码......

    请先完成验证