9

I have homebrew installed long before the OS is upgraded a few times to 10.12.3. Now that

$ brew --version
Homebrew 0.9.9 (git revision 080c; last commit 2016-08-11)
Homebrew/homebrew-core (git revision b163b; last commit 2016-08-10)

How to properly upgrade to newer version, say 1.1?

$ brew upgrade 

didn't work.

  • Maybe you have to do a clean install? If you don't have much installed via home brew, I'd recommend trying that – NoahL Mar 25 '17 at 4:44
  • I always do brew update and brew upgrade. Works like a charm. But I get frustrated by the fact that brew upgrade lists the packages it will update in alphabetical order but seems to happen in a random order, so I have no idea what the overall progress is until it is done. Can someone change it to either do it alphabetically or list the updates in order first? – user130681 May 29 '18 at 5:26
13

To update homebrew itself, use:

brew update

To upgrade all packages installed using homebrew, then you have to use brew upgrade. You can check this FAQ from brew website for more details.

6

The right way to solve this is to enter:

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

Found at http://discourse.brew.sh/t/how-to-upgrade-brew-stuck-on-0-9-9/33.

  • This suggests setting to master but master is not the latest release version, it contains unreleased content. Would be nice to have an official way of doing this... – Colin D Mar 5 '18 at 1:37
  • 3
    This seems to be an outdated answer, as brew update does this. apple.stackexchange.com/a/331552/189691 should be the accepted answer. – Marian Feb 6 at 8:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .