Created
October 5, 2018 04:53
-
-
Save sarjarapu/9f53f97212c2f4478afb6f089570aa85 to your computer and use it in GitHub Desktop.
A bash script to install the MongoDB shell and the MongoDB Enterprise dependencies
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
sudo tee /etc/yum.repos.d/mongodb-enterprise.repo << EOF | |
[mongodb-enterprise] | |
name=MongoDB Enterprise Repository | |
baseurl=https://repo.mongodb.com/yum/redhat/\$releasever/mongodb-enterprise/4.0/\$basearch/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc | |
EOF | |
# Install the mongodb enterprise dependencies and mongodb shell | |
sudo yum install -y cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl libpcap lm_sensors-libs net-snmp net-snmp-agent-libs openldap openssl rpm-libs tcp_wrappers-libs | |
sudo yum install -y mongodb-enterprise-shell-4.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment