MongoDB
Install MongoDB
Linux Mint
A walkthrough tutorial is available on the blog site: https://blog.bensoer.com/install-mongodb-on-linux-mint/
A brief breakdown of the steps will be listed here
- Run the Following Command:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- Edit the Follow Command:
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- Replace
$(lsb_release -sc)
with the appropriate ubuntu version the Mint version you are installing MongoDB on is based off of. You can find a full list here : http://www.linuxmint.com/oldreleases.php - Update dependencies:
sudo apt-get update
- Install Latest Version of MongoDB:
sudo apt-get install -y mongodb-org
Ubuntu
To install on Ubuntu, the procedure is very simple. Executes the following commands in the listed order:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
-
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Note that this will install the latest version of mongo. To install a specific version see MongoDB Docs in the sources
Notes
Sources
https://blog.bensoer.com/install-mongodb-on-linux-mint/
http://glenngeenen.be/untitled/
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/