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

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

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

Brew 鏡像源以及使用Homebrew應用在MacOS。

Brew 鏡像源以及使用
Homebrew應用在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

執行 brew 命令安裝應用的時候,跟以下 3 個倉庫地址有關。
    brew.git (源代碼倉庫)
    homebrew-core.git (核心軟件倉庫)
    homebrew-bottles (預編譯二進制軟件包)
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 清華大學鏡像源
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恢復默認設置鏡像源
# 恢復brew鏡像源
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
# 恢復homebrew-core鏡像源
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
# 恢復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
### 清華大學 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    #顯示已經安裝軟件列表    
brew update    #更新軟件,把所有的Formula目錄更新,并且會對本機已經安裝并有更新的軟件用*標明。    
brew upgrade git    #更新某具體軟件    
brew [info|home] [FORMULA…]    #查看軟件信息    
brew cleanup git    #單個軟件刪除,和upgrade一樣    
brew cleanup    #刪除所有    
brew outdated    #查看那些已安裝的程序需要更新    
brew home *    #用瀏覽器打開    
brew info *    #顯示軟件內容信息    
brew deps *    #顯示包依賴    
brew config    #查看brew配置   
————————————————
版權聲明:本文為CSDN博主「六月暴雪飛梨花」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/L_Lycos/article/details/113680436

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

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

點個贊
0
踩一腳
0

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

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

蘇公網安備32010402000125 蘇ICP備14051488號-3技術支持:南京博盛藍睿網絡科技有限公司

南京思必達教育科技有限公司版權所有   百度統計

主站蜘蛛池模板: 精品哟哟哟国产在线观看不卡 | 在线免费观看a级片 | 91短视频版高清在线观看免费 | 午夜羞羞视频 | 欧美二级| 激情免费视频 | 日韩人体在线 | 日韩a级片在线观看 | 久久五月激情婷婷日韩 | 亚洲不卡影院 | 日韩毛片网站 | 黄网站在线播放 | 波多野结衣四虎精品影库 | 午夜一级毛片免费视频 | 成人免费观看www视频 | 成人一级视频 | 国产精品福利久久2020 | 校园春色 自拍偷拍 | 在线观看一级毛片 | 国产伦人伦偷精品视频 | 一级成人a做片免费 | 中国性猛交xxxxx免费看 | 天天色天天色 | 一个人看的www片免费视频中文 | 夜夜爽天天操 | 9191精品国产费久久 | 国产亚洲papapa | 91短视频网站 | 美女黄频a美女大全免费皮 美女黄免费网站 | 日韩不卡高清视频 | 欧美一区二区三区成人看不卡 | 中文字幕小明 | 日韩wuma| 在线成人免费看大片 | 国产成人高清在线 | 国产制服 | 日本一道本在线视频 | 日日爱669 | 成人短视频在线 | 操野逼 | 一区二区三区在线 | 网站 |
最熱文章
最新文章
  • 阿里云上云鉅惠,云產品享最低成本,有需要聯系,
  • 卡爾蔡司鏡片優惠店,鏡片價格低
  • 蘋果原裝手機殼