Unable to install mongodb version 4.0.28 on centos9

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

updated the mongodb-org.repo as below
name=MongoDB Repository

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.


1 Like

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