Brew de instalar o actualizar cerveza es muy lento!
El uso doméstico de los espejos:
1,替换现有上游
git -C "$ (cerveza --repo)" origen set-url remota https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
git -C "$ ( brebaje --repo homebrew / núcleo) "origen set-url remota https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
git -C" $ (cerveza --repo homebrew / barril )" origen set-url remota https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
cerveza actualización
2,复原方法
git -C origen set-url "$ (cerveza --repo)" a distancia https://github.com/Homebrew/brew.git
git -C "$ (cerveza --repo homebrew / núcleo)" a distancia origen set-url https://github.com/Homebrew/homebrew-core.git
git -C "$ (cerveza --repo homebrew / barril)" origen set-url remota https://github.com/Homebrew/homebrew -cask.git
actualización de cerveza
La agencia todavía se sienten relativamente rápido:
empresa de trabajo temporal ha añadido:
exportar ALL_PROXY = socks5: //127.0.0.1: 1081
Actuando introducido de forma permanente:
eco de exportación ALL_PROXY = socks5: //127.0.0.1: 1080 >> ~ / .bash_profile
source ~ / .base_profile