Mongodb install on Amazon linux 2

when i run sudo yum install -y mongodb-org on amazon linux 2 here is the answer i get

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
 subscription-manager repos --enable <repo>
 To enable custom repositories:
 yum-config-manager --enable <repo>

who has a solution please

Hi @Armel_KOBLAN welcome to the community!

For Amazon Linux, please follow the steps in Install MongoDB Community Edition on Amazon Linux.

If that procedure fails, please post the failing command and the error message it outputs.

Best regards

1 Like