Slow brew update image update source solutions

Brew is similar to apt-get and yum package manager is a OS X,,It relies on Github ..................

so,While you are lucky enough to be downloaded to the brew,But you certainly can not update the brew。Cause you know。However, although it can not update brew,But this only refers to brew the manager itself Bale,Or software that can be installed。However, due to not use brew update Will not be able to update the software ...... we need to change source to brew。

Update

note,If you followLet go Homebrew Update AgentThe article to operate the,Then you do not need to switch the image source,As it has been a global proxy,Otherwise it will lead to brew can not be updated - because foreign country can not easily access。

If you do both,Then you need to use the following command to reinstall brew :

 

brew mirror source

brew also mirroring? Ok,Indeed, some,And not just one:

  • USTC brew mirroring
  • Tsinghua brew mirroring

Replace mirroring

Next Steps

Troubleshooting

If you are experiencing this problem ...:

Ann then according to the following command Troubleshooting:

At last

Gone,run brew update Be happy to update it! then brew upgrade 。?

Further reading

Original article written by LogStudio:R0uter's Blog » Slow brew update image update source solutions

Reproduced Please keep the source and description link:https://www.logcg.com/archives/1301.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Comments

  1. Sometimes it does not work well,USTC's still OK with the:
    1. Alternatively homebrew-core source
    cd “$(brew –repo)/Library/Taps/homebrew/homebrew-core”
    git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git
    2. Replace Homebrew Bottles source
    echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles’ >> ~/.bash_profile
    source ~/.bash_profile

    brew update

  2. Hello there,I use two mirroring replace command after the error are shown below:
    fatal: Not a git repository (or any of the parent directories): .git
    How can we solve?

      1. Run brew update,The following error message,Where this brew.sh in?
        /usr/local/bin/brew: line 25: /usr/local/Library/brew.sh: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *