Unable to install mongodb version 4.0.28 on centos9

Hey,
I am trying to install mongo version4.0.28 on Centos9 community edition server.

updated the mongodb-org.repo as below
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

and using sudo dnf install mongo-org command to install mongo, and facing below error

MongoDB Repository 1.6 kB/s | 390 B 00:00
Errors during downloading metadata for repository ‘mongodb-org-4.0’:

Please help me with the issue.

Thank You

Hi @aditya_k2 and welcome in the MongoDB Community! :muscle:

MongoDB 4.0 reached end of life in April 2022 so my first advice would be to upgrade without waiting.

See the supported platform for Centos:

And the MongoDB version policy:

From what I see on the MongoDB Download website:

Looks like Centos 9 isn’t supported for such an old version.

Cheers,
Maxime.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.