免费在线a视频-免费在线观看a视频-免费在线观看大片影视大全-免费在线观看的视频-色播丁香-色播基地

運維管理:Mac利器Brew鏡像源以及使用

:2022年05月02日 六月暴雪飛梨花
分享到:

Brew 鏡像源以及使用Homebrew應(yīng)用在MacOS。

Brew 鏡像源以及使用
Homebrew應(yīng)用在MacOS。
1.1 查看當前鏡像源的信息
# 查看brew鏡像源
git -C "$(brew --repo)" remote -v
# 查看homebrew-core鏡像源
git -C "$(brew --repo homebrew/core)" remote -v
# 查看homebrew-cask鏡像源(需要安裝后才能查看)
git -C "$(brew --repo homebrew/cask)" remote -v

執(zhí)行 brew 命令安裝應(yīng)用的時候,跟以下 3 個倉庫地址有關(guān)。
    brew.git (源代碼倉庫)
    homebrew-core.git (核心軟件倉庫)
    homebrew-bottles (預(yù)編譯二進制軟件包)
1.2 修改為中科大鏡像源
# 修改brew鏡像源
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 修改homebrew-core鏡像源
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# 修改homebrew-cask鏡像源(需要安裝后才能修改)
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# 更新
brew update

或者
# 進到目錄,更改鏡像源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 進到目錄,更改鏡像源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# 修改.bash_profile配置信息,并使文件生效
source ~/.base_profile
# 測試更新
brew update

參考地址:https://lug.ustc.edu.cn/wiki/mirrors/help/homebrew-bottles
1.3 修改為阿里云鏡像源
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
# 別忘記更新配置文件,并生效配置文件
source ~/.base_profile
# 測試更新
brew update

1.4 清華大學(xué)鏡像源
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
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git
# 別忘記更新配置文件,并生效配置文件
source ~/.base_profile
# 測試更新
brew update

參考地址:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
1.5恢復(fù)默認設(shè)置鏡像源
# 恢復(fù)brew鏡像源
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
# 恢復(fù)homebrew-core鏡像源
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
# 恢復(fù)homebrew-cask鏡像源(需要安裝后才能修改)
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
brew update

1.6 更改配置文件
### aliyun io
# export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles
### 中科大 io
# export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
### 清華大學(xué) io
# export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

1.7 brew 常用命令
命令    說明    
brew –help    #查看brew的幫助    
brew install git    #安裝git軟件    
brew uninstall git    #卸載git軟件    
brew search git    #搜索git軟件    
brew list    #顯示已經(jīng)安裝軟件列表    
brew update    #更新軟件,把所有的Formula目錄更新,并且會對本機已經(jīng)安裝并有更新的軟件用*標明。    
brew upgrade git    #更新某具體軟件    
brew [info|home] [FORMULA…]    #查看軟件信息    
brew cleanup git    #單個軟件刪除,和upgrade一樣    
brew cleanup    #刪除所有    
brew outdated    #查看那些已安裝的程序需要更新    
brew home *    #用瀏覽器打開    
brew info *    #顯示軟件內(nèi)容信息    
brew deps *    #顯示包依賴    
brew config    #查看brew配置   
————————————————
版權(quán)聲明:本文為CSDN博主「六月暴雪飛梨花」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/L_Lycos/article/details/113680436

[我要糾錯]
[編輯:王振袢 &發(fā)表于江蘇]
關(guān)鍵詞: Brew 鏡像 以及 使用 Homebrew

來源:本文內(nèi)容搜集或轉(zhuǎn)自各大網(wǎng)絡(luò)平臺,并已注明來源、出處,如果轉(zhuǎn)載侵犯您的版權(quán)或非授權(quán)發(fā)布,請聯(lián)系小編,我們會及時審核處理。
聲明:江蘇教育黃頁對文中觀點保持中立,對所包含內(nèi)容的準確性、可靠性或者完整性不提供任何明示或暗示的保證,不對文章觀點負責(zé),僅作分享之用,文章版權(quán)及插圖屬于原作者。

點個贊
0
踩一腳
0

您在閱讀:運維管理:Mac利器Brew鏡像源以及使用

Copyright©2013-2025 ?JSedu114 All Rights Reserved. 江蘇教育信息綜合發(fā)布查詢平臺保留所有權(quán)利

蘇公網(wǎng)安備32010402000125 蘇ICP備14051488號-3技術(shù)支持:南京博盛藍睿網(wǎng)絡(luò)科技有限公司

南京思必達教育科技有限公司版權(quán)所有   百度統(tǒng)計

主站蜘蛛池模板: 最近的中文字幕免费视频1 最近的中文字幕大全免费版 | 18成网站www在线观看 | 日日干狠狠 | 99九九99九九九视频精品 | 在线亚洲天堂 | 2019中文字幕视频 | 国产日韩欧美在线观看 | 午夜在线 | 最近的免费中文字幕视频 | 天堂网在线免费 | 国产日韩亚洲不卡高清在线观看 | 国产色妇 | 亚洲天堂日韩在线 | 天天舔天天射天天操 | 国产精品一二三区 | 性生大片一级毛片免费观看 | 尹人在线视频 | 美女网站大黄 | 免费观看黄色视屏 | 男女爱视频免费高清在线观看 | 一区二区欧美视频 | 免费被黄网站在观看 | 永久免费看黄在线播放 | 日韩精品无码一区二区三区 | 国产精品天天看特色大片不卡 | 另类免费视频 | 亚洲综合久久一本伊伊区 | 一级毛片免费视频 | 亚洲欧美日韩精品久久亚洲区色播 | 性欧美丨18一19 | 亚洲一区二区三区在线网站 | 日韩手机在线观看 | 欧美精品人爱c欧美精品 | www.日韩在线 | 欧美videos极品另类 | 第一福利在线导航 | 欧美日本一区亚洲欧美一区 | 二级特黄绝大片免费视频大片 | 中国女人三级在线播放 | 色偷偷亚洲第一成人综合网址 | 本道综合 |
最熱文章
最新文章
  • 阿里云上云鉅惠,云產(chǎn)品享最低成本,有需要聯(lián)系,
  • 卡爾蔡司鏡片優(yōu)惠店,鏡片價格低
  • 蘋果原裝手機殼