On my mac, I have installed the mongoDB(version 2.0.2) using Homebrew. I want to use 'aggregate' function but it is only available from version 2.2 so for that I update the mongoDB using the following code:
brew upgrade mongodb
But I get the following error:
Error: mongodb already upgraded
How can I install the latest version of MongoDB?