<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Mac 下 brew 切換為國(guó)內(nèi)源

      Mac 下brew 切換為國(guó)內(nèi)源

      簡(jiǎn)介

      Homebrew 是一款自由及開(kāi)放源代碼的軟件包管理系統(tǒng),用以簡(jiǎn)化macOS 和linux 系統(tǒng)上的軟件安裝過(guò)程。它擁有安裝、卸載、更新、查看、搜索等很多實(shí)用的功能,通過(guò)簡(jiǎn)單的一條指令,就可以實(shí)現(xiàn)包管理,十分方便快捷。

      Homebrew 主要有四個(gè)部分組成: brew、homebrew-core 、homebrew-bottles、homebrew-cask。

      名稱(chēng)

      說(shuō)明

      brew

      Homebrew 源代碼倉(cāng)庫(kù)

      homebrew-core

      Homebrew 核心軟件倉(cāng)庫(kù)

      homebrew-bottles

      Homebrew 預(yù)編譯二進(jìn)制軟件包

      homebrew-cask

      提供 macOS 應(yīng)用和大型二進(jìn)制文件

      替換為阿里源

      # 查看brew.git 當(dāng)前源

      $ cd"$(brew --repo)"&& git remote -v

      origin https://github.com/Homebrew/brew.git (fetch)

      origin https://github.com/Homebrew/brew.git (push)

       

      # 查看homebrew-core.git 當(dāng)前源

      $ cd"$(brew --repo homebrew/core)"&& git remote -v

      origin https://github.com/Homebrew/homebrew-core.git (fetch)

      origin https://github.com/Homebrew/homebrew-core.git (push)

       

      # 修改brew.git 為阿里源

      $ git -C "$(brew --repo)"remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

       

      # 修改homebrew-core.git 為阿里源

      $ git -C "$(brew --repo homebrew/core)"remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

       

      # zsh 替換brew bintray 鏡像

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

      $ source~/.zshrc

       

      # bash 替換brew bintray 鏡像

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

      $ source~/.bash_profile

       

      # 刷新源

      $ brew update

      替換為清華源

      # 替換各個(gè)源

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

      $ git -C "$(brew --repo homebrew/core)"remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

      $ git -C "$(brew --repo homebrew/cask)"remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git

       

      # zsh 替換brew bintray 鏡像

      $ echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles'>> ~/.zshrc

      $ source~/.zshrc

       

      # bash 替換brew bintray 鏡像

      $ echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles'>> ~/.bash_profile

      $ source~/.bash_profile

       

      # 刷新源

      $ brew update

      替換為中科大源

      # 替換各個(gè)源

      $ git -C "$(brew --repo)"remote set-url origin https://mirrors.ustc.edu.cn/brew.git

      $ git -C "$(brew --repo homebrew/core)"remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

      $ git -C "$(brew --repo homebrew/cask)"remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

       

      # zsh 替換brew bintray 鏡像

      $ echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles'>> ~/.zshrc

      $ source~/.zshrc

       

      # bash 替換brew bintray 鏡像

      $ echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles'>> ~/.bash_profile

      $ source~/.bash_profile

       

      # 刷新源

      $ brew update

       

      騰訊云的官方鏡像源:

      替換方式為:

      替換brew.git:

      cd"$(brew --repo)"

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

       

      替換homebrew-core.git:

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

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

      更新bottles源

      對(duì)于bash用戶(hù):

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

      source~/.bash_profile

      對(duì)于zsh用戶(hù)

      echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles'>> ~/.zshrc

      source~/.zshrc

       

       

       

       

       

       

       

       

       

       

      重置為官方源

      # 重置brew.git 為官方源

      $ git -C "$(brew --repo)"remote set-url origin https://github.com/Homebrew/brew.git

       

      # 重置homebrew-core.git 為官方源

      $ git -C "$(brew --repo homebrew/core)"remote set-url origin https://github.com/Homebrew/homebrew-core.git

       

      # 重置homebrew-cask.git 為官方源

      $ git -C "$(brew --repo homebrew/cask)"remote set-url origin https://github.com/Homebrew/homebrew-cask

       

      # zsh 注釋掉HOMEBREW_BOTTLE_DOMAIN 配置

      $ vi ~/.zshrc

      # export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx

       

      # bash 注釋掉HOMEBREW_BOTTLE_DOMAIN 配置

      $ vi ~/.bash_profile

      # export HOMEBREW_BOTTLE_DOMAIN=xxxxxxxxx

       

      # 刷新源

      $ brew update

      posted @ 2022-06-30 23:05  DC_Mac  閱讀(373)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 欧美人与动牲交A免费观看| 亚洲中文字幕日产无码成人片| 真实国产乱啪福利露脸| 中文午夜乱理片无码| 亚洲女同精品久久女同| 亚洲 欧洲 自拍 偷拍 首页| 天堂…中文在线最新版在线| 日韩中文字幕有码av| 国产丰满麻豆videossexhd| 国产精品国产亚洲区久久| 深夜免费av在线观看| 亚洲肥老太bbw中国熟女| 国产午夜精品亚洲精品国产| 2019香蕉在线观看直播视频| 999国产精品999久久久久久| 大香伊蕉在人线国产最新2005| 霞浦县| 熟女亚洲综合精品伊人久久| 高清自拍亚洲精品二区| 平安县| 久久国产乱子精品免费女| 熟妇女人妻丰满少妇中文字幕| 一区二区三区精品视频免费播放| 久久中文字幕日韩无码视频| 欧美成人一卡二卡三卡四卡| 成人一区二区不卡国产| 夜夜添狠狠添高潮出水| 国产精品高清一区二区不卡| 午夜福利精品国产二区| 91密桃精品国产91久久| 亚洲国产成人资源在线| 中文字幕久久国产精品| 久久精品女人天堂av免费观看 | 奶头好大揉着好爽视频| 中文字幕精品av一区二区五区| 在线观看无码av免费不卡网站| 欧美激情视频一区二区三区免费 | 国产视频最新| 午夜福利日本一区二区无码| 午夜福利国产精品视频| 国产毛片欧美毛片久久久|