-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
Description
Following these instructions:
```
Configure the package management system (yum).
Create a /etc/yum.repos.d/mongodb-org-4.2.repo file so that you can install MongoDB directly using yum:
copy
copied
[mongodb-org-4.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
You can also download the .rpm files directly from the MongoDB repository. Downloads are organized by Amazon Linux version (e.g. 2), then MongoDB release version (e.g. 4.2), then architecture (e.g. x86_64). Odd-numbered MongoDB release versions, such as 4.3, are development versions and are unsuitable for production deployment.
2
Install the MongoDB packages.
To install the latest stable version of MongoDB, issue the following command:
copy
copied
sudo yum install -y mongodb-org
```
Gives the following errors:
```
sudo yum install -y mongodb-org
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
- base: d36uatko69830t.cloudfront.net
- epel: d2lzkl7pfhq30w.cloudfront.net
- extras: d36uatko69830t.cloudfront.net
- updates: d36uatko69830t.cloudfront.net
No package mongodb-org available.
Error: Nothing to do
```