How do I update a formula with Homebrew?

ma11hew28 picture ma11hew28 · Dec 24, 2010 · Viewed 112.7k times · Source

How do I update a formula?

I ran brew update. Then, running brew outdated, outputs:

mongodb (1.4.3-x86_64 < 1.6.5-x86_64)

Thus, mongodb is outdated.

How do I upgrade it? Do I just uninstall and then install?

Answer

y.c picture y.c · Oct 26, 2011

I think the correct way to do is

brew upgrade mongodb

It will upgrade the mongodb formula. If you want to upgrade all outdated formula, simply

brew upgrade