Every time you install a new brew package must first update itself when the network is slow brew update unlimited stuck, although press ctrl C can be skipped, but sometimes it is the baffling question brew their own version of the cause of emergence, if not the updated aircraft carrier, the back will not be smooth.
Today Huff, Ali changed the image, everything really solved (fundamentalist)
labeled iterm-bash script for future reference:
cd "$ (BREW --repo)"
git the SET-Remote HTTPS url Origin: //mirrors.aliyun .com / homebrew / brew.git
cd "$ (BREW --repo) / Library / Taps / homebrew / homebrew-Core"
git Remote the SET-url Origin https://mirrors.aliyun.com/homebrew/homebrew-core. Git
echo 'Export HOMEBREW_BOTTLE_DOMAIN = HTTPS: //mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~ / .bash_profile
Source ~ / .bash_profile
first two steps actually to / usr / local / directory under the brew Homebrew and brew-core git path to change, the final step is to modify the source binary file bashprofile amount of change.
After their execution once brew update, is not it refreshing
----------------
Disclaimer: This article is the original article CSDN bloggers "guodengh", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/guodengh/article/details/90678108
brew replacement mirror Ali cloud, Tsinghua slow death
Guess you like
Origin www.cnblogs.com/jiftle/p/12590432.html
Recommended
Ranking