How to upgrade mongodb from 2.0 to 2.2 on mac osx

There are no instructions that I can find on the mongodb website on how to install 2.2 when you already have 2.0 using brew. I can see the versions using "brew versions of mongodb", but when I try to install it, it says: "mongodb does not have version" 2.2.0-x86_64 "in Cellar."

The version command shows:

new-host-4:~ scott$ brew versions mongodb
2.2.0-x86_64 git checkout 34fb67d /usr/local/Library/Formula/mongodb.rb
2.0.7-x86_64 git checkout 6434ebb /usr/local/Library/Formula/mongodb.rb
2.0.6-x86_64 git checkout 2553479 /usr/local/Library/Formula/mongodb.rb
...

I know this is just a few magicians, but I do not know the correct spell.

+5
source share
1 answer

All I had to do was the following ...

$ brew update
$ brew upgrade mongodb
+17
source

All Articles