Ctrl + c interrupt need to continue downloading when Mac homebrew

brew upgrade

brew pause update, you need to ctrl + c to continue.

 

 

In addition foreign brew mirror download very slow, replaced Ali cloud mirroring resources, as follows:
when we execute the command to install the software when the brew, with about three warehouses:
brew.git

# Replaced Alibaba brew.git warehouse address: 
cd "$ (BREW --repo)"
git Remote the SET-url Origin https://mirrors.aliyun.com/homebrew/brew.git

# ====== =================================================

# reduction of the official address of brew.git warehouse
cd "$ (BREW --repo)"
git Remote the SET-url Origin https://github.com/Homebrew/brew.git


homebrew-core.git 

 

# Replaced Alibaba homebrew-core.git Warehouse Address: 
cd "$ (BREW --repo) / Library / Taps / homebrew / homebrew-Core"
git Remote the SET-url Origin https://mirrors.aliyun.com/ homebrew / homebrew-core.git

# ========================================== =============

# restore homebrew-core.git warehouse address provided by the official
cd "$ (BREW --repo) / Library / Taps / homebrew / homebrew-Core"
git Remote SEt- url origin https://github.com/Homebrew/homebrew-core.git


homebrew-bottles 

## view the current version using the shell 
echo $ SHELL
# If your output is / bin / zsh, zsh below the reference terminal operation
# If your output is / bin / bash, bash below the reference terminal operation

## zsh terminal operation mode
# replaced Ali Baba homebrew-bottles access address:
echo 'Export HOMEBREW_BOTTLE_DOMAIN = HTTPS: //mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~ / .zshrc
Source ~ / .zshrc

# == ================================================== ===

# reduced to provide the official access address homebrew-bottles
VI ~ / .zshrc
# then, delete the line configuration HOMEBREW_BOTTLE_DOMAIN
Source ~ / .zshrc

## the bash terminal operation mode
# Alternatively homebrew-bottles access the URL:
echo 'Export HOMEBREW_BOTTLE_DOMAIN HTTPS =: //mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~ / .bash_profile
Source ~ / .bash_profile

# ================================================= ======

# revert to the official visit of homebrew-bottles address
vi ~ / .bash_profile
# then, remove this line HOMEBREW_BOTTLE_DOMAIN configuration
source ~ / .bash_profile

 

Guess you like

Origin www.cnblogs.com/fubinhnust/p/11908978.html