## Install MongoDB 

You can install MongoDB with Homebrew 7 or manually. This section describes both. 

## Install MongoDB with Homebrew 

Homebrew 8 installs binary packages based on published “formulae.” This section describes how to update brew to the latest packages and install MongoDB. Homebrew requires some initial setup and configuration, which is beyond the scope of this document. 

## Step 1: Update Homebrew’s package database. 

In a system shell, issue the following command: 

brew update 

## Step 2: Install MongoDB. 

You can install MongoDB via brew with several different options. Use one of the following operations: 

Install the MongoDB Binaries To install the MongoDB binaries, issue the following command in a system shell: 

brew install mongodb 

Build MongoDB from Source with TLS/SSL Support To build MongoDB from the source files and include TLS/SSL support, issue the following from a system shell: 

brew install mongodb --with-openssl 

Install the Latest Development Release of MongoDB To install the latest development release for use in testing and development, issue the following command in a system shell: 

brew install mongodb --devel 

## Install MongoDB Manually 

Only install MongoDB using this procedure if you cannot use homebrew (page 25). 

## Step 1: Download the binary files for the desired release of MongoDB. 

Download the binaries from https://www.mongodb.org/downloads . 

For example, to download the latest release through the shell, issue the following: 

curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.0.4.tgz 

