2 Answers
- Newest
- Most votes
- Most comments
0
Hello, Can you confirm the full echo command? It should be:
echo -e "[mongodb-org-4.0] \nname=MongoDB Repository\nbaseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/4.0/x86_64/\ngpgcheck=1 \nenabled=1 \ngpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc" | sudo tee /etc/yum.repos.d/mongodb-org-4.0.repo
For connecting to Amazon DocumentDB I recommend following the getting started guide, which details the VPC and security group configuration.
answered 3 years ago
0
It looks that you're missing the /etc/yum.repos.d
directory. Are you on a Ubuntu 18 Cloud9 environment by any chance?
If this is the case, then the steps to install the mongo client on Ubuntu are:
- Add the MongoDB GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
- Add MongoDB repository:
sudo add-apt-repository 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse'
- Refresh packages list and install mongo client and tools:
sudo apt update
sudo apt install mongodb-org-shell mongodb-org-tools
answered 3 years ago
Relevant content
- Accepted Answerasked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I confirm, Here is the full output: