mongodb on CentOS7

The mongodb is available for CentOS7, but RedHat decided to drop off mongodb on Jan. 19th, 2019.

When I tried to install mongodb it takes me to the mongodb help doc. My “/etc/yum.repos.d/mongodb-org.repo” looks like the following:

/etc/yum.repos.d/mongodb-org-4.0.repo

[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, I added excludes to the /etc/yum.conf file as following:

exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools

Here is the information about mongodb on my CentOS7

cat /etc/mongod.conf