简体   繁体   中英

How to update brew if it is not updating?

I am trying to update my brew install. When I update using brew update it shows already up to date, however it is not.

Tried brew doctor as well. But it showed nothing.

Is reinstalling brew the only option left?

I am using Mac OS Sierra .

So I found a solution. Unlucky me stumbled upon this one I guess.

Used the same solution:

cd $(brew --repo) && git fetch && git reset --hard origin/master && brew update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM