Forked from javierfdezg/mongo-install-ubuntu-14.10.sh
Created
January 24, 2017 14:47
-
-
Save sunsgs/ce42329694fa3256d5c2a0fac7414717 to your computer and use it in GitHub Desktop.
Installing mongodb in Ubuntu 14.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up the repo | |
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.list | |
# Updating and installing | |
sudo apt-get update | |
# WARNING: check out the -y here... | |
sudo apt-get install -y mongodb-org | |
# For a specific version, use this command | |
# apt-get install mongodb-org=3.0.0 mongodb-org-server=3.0.0 mongodb-org-shell=3.0.0 mongodb-org-mongos=3.0.0 mongodb-org-tools=3.0.0 | |
# Freeze the package, we don't want surprises if someone upgrades | |
sudo apt-mark hold mongodb-org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment