Install mongodb-org 5.0 on Amazon Linux 2 aarch64 architecture

Unable to install mongodb 5.0 on Amazon Linux 2 on arm64 architecture. I am using t4g.medium instance for this.
This is repo config file:

$ cat /etc/yum.repos.d/mongodb-org-5.0.repo
[mongodb-org-5.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/aarch64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc

Searching for mongodb package gives this:

$ sudo yum search mongod-org
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Warning: No matches found for: mongod-org
No matches found

There is no info on installing arm64 on amazon linux2 while it is clearly stated in the docs that its supported.

You spelled it wrong.

Apologies, I spelled it out wrong here in this question. Here is a more detailed output which I copy pasted from the docs.

$ sudo yum install -y mongodb-org
Loaded plugins: extras_suggestions, langpacks, priorities,
              : update-motd
amzn2-core                          | 3.7 kB     00:00
amzn2extra-docker                   | 3.0 kB     00:00
amzn2extra-kernel-5.10              | 3.0 kB     00:00
mongodb-org-5.0                     | 2.5 kB     00:00
mongodb-org-5.0/primary_db            |  77 kB   00:00
No package mongodb-org available.
Error: Nothing to do

I just took a look at the docs for installing MongoDB 5 Community Edition on Amazon Linux 2.

There is clearly an omission regarding the arm64 architecture. A sentence is incomplete.

A MongoDB staffer will have to help you with this. @Stennie_X , do you have any information on this install process?

Subscribing, I’m also having the same issue.

5 posts were split to a new topic: Problem installing MongoDB 6.0 on Amazon Linux 2

Same issue.
I’m on a t4g.xlarge on AWS.
Solution:

sudo yum clean metadata

Then use this:

[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/6.0/aarch64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc

run:

 sudo yum install -y mongodb-org

Not sure that will help you

2 Likes