homebrew

How do I update a formula with Homebrew?


How do I update a formula?

I ran brew update. However, mongodb is still outdated according to brew outdated:

mongodb (1.4.3-x86_64 < 1.6.5-x86_64)

Solution

  • First, update brew's internal list of formulae to the latest:

    brew update
    

    To upgrade only the mongodb formula, use install:

    brew install mongodb
    

    To upgrade all outdated formulae:

    brew upgrade