美文网首页
intel内核mac安装homebrew

intel内核mac安装homebrew

作者: ljh_10e3 | 来源:发表于2024-04-21 23:02 被阅读0次

    1.设置环境变量

    export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"

    export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"

    export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"

    2.从镜像下载homebrew

    git clone --depth=1 https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.git 

    cd install

    /bin/bash brew-install/install.sh

    处理完毕,删掉install文件夹

    3.到这里brew就安装好了,但是推荐做以下步骤

    export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"

    for tap in core cask{,-fonts,-drivers,-versions} command-not-found; do

    brew tap --custom-remote --force-auto-update "homebrew/${tap}" "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-${tap}.git"

    done

    brew update

    test -r ~/.bash_profile && echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"' >> ~/.bash_profile  # bash

    test -r ~/.bash_profile && echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"' >> ~/.bash_profile

    相关文章

      网友评论

          本文标题:intel内核mac安装homebrew

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