![brew install mongodb version brew install mongodb version](https://code4developers.com/wp-content/uploads/2019/10/MongoDBicon.png)
If you want to install the latest full release of MongoDB Community edition complete with tools, it is as simple as running: brew install mongodb-community&NewLine There is one tool which people often want to install on its own, and that’s the MongoDB shell. If you are new to Mongo and you don't have it installed on your system then you need to create that directory. brew tap mongodb/brew&NewLine Now we’re ready to pour. You can see that I have each one of the collections right here. So I already have this on my system and the way I can know that is if I type ls and then run it. This is the directory that Mongo needs because that's where it's going to store all of the data and it's going to store it right inside of this directory. To do this you're going to type in mkdir -p /data/db. Now after that has run then go and create a data directory.
![brew install mongodb version brew install mongodb version](https://attacomsian.com/social-banner/install-mongodb-macos.png)
You don't have to be an sudo or anything like that for this specific command. I already have Mongo on my system so I do not need to run the command but it's a pretty basic command to run. If you run that then homebrew will go out and find all the dependencies and build the entire system for you and you will be up and running with it.
#Brew install mongodb version update
Brew update will just make sure that you have the latest version of homebrew if you already had it installed. Now I've already run brew update on my system and if you've recently done it then you don't have to either. The first command to run will be brew update. So if you do not have a brew already installed then you can run it right here and it will go through, it might take a few minutes but it will install and then once you have that you'll be ready to install Mongo. And then open up your terminal and paste it in.