婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁(yè) > 知識(shí)庫(kù) > Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法

Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法

熱門標(biāo)簽:寧夏保險(xiǎn)智能外呼系統(tǒng)哪家好 防城港市ai電銷機(jī)器人 交行外呼系統(tǒng)有哪些 不同的地圖標(biāo)注 激戰(zhàn)黃昏地圖標(biāo)注說(shuō)明 臨滄移動(dòng)外呼系統(tǒng)哪家有 怎么更改地圖標(biāo)注電話 溫嶺代理外呼系統(tǒng) 隨州銷售外呼系統(tǒng)平臺(tái)

1.使用中科大源

(1)替換默認(rèn)源
第一步:替換brew.git

cd "$(brew --repo)"

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

第二步:替換homebrew-core.git

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

(2)替換Homebrew Bottles源

Homebrew是OS X系統(tǒng)的一款開(kāi)源的包管理器。出于節(jié)省時(shí)間的考慮,Homebrew默認(rèn)從Homebrew Bottles源中下載二進(jìn)制代碼包安裝。Homebrew Bottles是Homebrew提供的二進(jìn)制代碼包,目前鏡像站收錄了以下倉(cāng)庫(kù):

homebrew/homebrew-core
homebrew/homebrew-dupes
homebrew/homebrew-games
homebrew/homebrew-gui
homebrew/homebrew-python
homebrew/homebrew-php
homebrew/homebrew-science
homebrew/homebrew-versions
homebrew/homebrew-x11

對(duì)于bash用戶:

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

對(duì)于zsh用戶

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

source ~/.zshrc

2.使用清華源

(1)替換默認(rèn)源

第一步:替換現(xiàn)有上游

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
cd 
brew update

第二步:使用homebrew-science或者h(yuǎn)omebrew-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
cd 
brew update

(2)替換Homebrew Bottles源

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

3.在中科大源或清華源失效或宕機(jī)時(shí)可以切換回官方源

第一步:重置brew.git

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

第二步:重置homebrew-core.git

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

第三步:注釋掉bash配置文件里的有關(guān)Homebrew Bottles即可恢復(fù)官方源。 重啟bash或讓bash重讀配置文件。

到此這篇關(guān)于Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法的文章就介紹到這了,更多相關(guān)Mac更換Homebrew鏡像源內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:
  • pip/anaconda修改鏡像源,加快python模塊安裝速度的操作
  • windows環(huán)境下修改pip鏡像源的方法詳解
  • windows及l(fā)inux環(huán)境下永久修改pip鏡像源的方法
  • 在Anaconda3下使用清華鏡像源安裝TensorFlow(CPU版)
  • mac下pip、conda、homebrew修改為清華鏡像源的方法

標(biāo)簽:紅河 沈陽(yáng) 無(wú)錫 青海 阜陽(yáng) 河源 哈密 忻州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法》,本文關(guān)鍵詞  Mac,下,更換,Homebrew,鏡像,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Mac下更換Homebrew鏡像源的實(shí)現(xiàn)方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 企业400电话

    智能AI客服机器人
    15000

    在线订购

    合计11份范本:公司章程+合伙协议+出资协议+合作协议+股权转让协议+增资扩股协议+股权激励+股东会决议+董事会决议

    推薦文章
    主站蜘蛛池模板: 黄浦区| 山西省| 波密县| 七台河市| 宜丰县| 德江县| 郧西县| 原平市| 云龙县| 申扎县| 乌审旗| 馆陶县| 盐山县| 临夏县| 故城县| 苍溪县| 綦江县| 郎溪县| 饶阳县| 大方县| 雷波县| 瓮安县| 凤庆县| 安宁市| 监利县| 鞍山市| 连南| 寻乌县| 高青县| 平舆县| 沙河市| 巩义市| 当雄县| 前郭尔| 苏尼特右旗| 福鼎市| 岢岚县| 宿州市| 平远县| 蓬莱市| 上林县|