Why can't I update to the latest MongoDB with Homebrew?

If the version of mongodb in your brew receipe is the same of the version installed, you get the stated error.

Typically when you see a latest stable version released and you wish to bump up your mongodb version to it, you'd first have to update your brew receipe and then do your upgrade as you did.

That means you'd first do

brew update

and then

brew upgrade mongodb

This command should update your homebrew formulae to their latest version:

brew update

And then:

brew upgrade mongodb

To install the latest version of mongodb.


for MacOS Catalina

First, you install Homebrew. If you’re curious about what Homebrew is, read this article.

# Installs Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Second, find the MongoDB tap.

brew tap mongodb/brew

Third, install MongoDB.

brew install mongodb-community