国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Mac 下 brew 切換為國內(nèi)源
注:清華源經(jīng)驗(yàn)證是可用的。

2020-04-142020-04-14 16:12:51閱讀 4.9K0

簡介

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

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

名稱

說明

brew

Homebrew 源代碼倉庫

homebrew-core

Homebrew 核心軟件倉庫

homebrew-bottles

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

homebrew-cask

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

替換為阿里源

# 查看 brew.git 當(dāng)前源$ cd "$(brew --repo)" && git remote -vorigin    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 -vorigin    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 為官方源$ 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

本文分享自微信公眾號(hào) - 叨叨軟件測(cè)試(daodaotest),作者:蔣李恒

原文出處及轉(zhuǎn)載信息見文內(nèi)詳細(xì)說明,如有侵權(quán),請(qǐng)聯(lián)系 yunjia_community@tencent.com 刪除。

原始發(fā)表時(shí)間:2020-04-05

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
HomeBrew 深度學(xué)習(xí)
Macbook免費(fèi)制作gif動(dòng)態(tài)圖
mac下高效安裝 homebrew 及完美避坑姿勢(shì) (親測(cè)有效)
Kubernetes 環(huán)境搭建 - MacOS
macOS HomeBrew更換源 brew常用命令說明
Mac OS 安裝 Homebrew 和 MongoDB
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服