Skip to content

Instantly share code, notes, and snippets.

@thuongdinh-agilityio
Last active September 9, 2021 13:15
Show Gist options
  • Save thuongdinh-agilityio/4b2d5a92f5db871e0669ec7d9e73cb25 to your computer and use it in GitHub Desktop.
Save thuongdinh-agilityio/4b2d5a92f5db871e0669ec7d9e73cb25 to your computer and use it in GitHub Desktop.
install mongo shell
#!/usr/bin/env bash
set -e
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update -y > /dev/null 2>&1
sudo apt-get install -y libcurl3 mongodb-org-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment