Skip to content

Instantly share code, notes, and snippets.

@m3hari
Last active December 3, 2018 15:39
Show Gist options
  • Save m3hari/2ba9170d737b0d695f88141a7007a971 to your computer and use it in GitHub Desktop.
Save m3hari/2ba9170d737b0d695f88141a7007a971 to your computer and use it in GitHub Desktop.
install mongo on ubuntu18
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
# install all components of mongo
sudo apt-get install -y mongodb-org
#install only mongo shell
sudo apt-get install -y mongodb-org-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment