Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created February 1, 2016 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/1f9139dad08c5f6f4467 to your computer and use it in GitHub Desktop.
Save niraj-shah/1f9139dad08c5f6f4467 to your computer and use it in GitHub Desktop.
Update APT to get latest MongoDB packages and instal latest version of software
# Import the Public Key for Official MongoDB Repo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
# Update apt-get to get latest MongoDB packages
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
# Update apt-get package list with new repo details
sudo apt-get update
# Install the latest version of MongoDB
sudo apt-get install -y mongodb-org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment