Hi everyone, i have gone through the fundamentals of devops course. I am now try . . .

Samson Odunola:
Hi everyone, i have gone through the fundamentals of devops course. I am now trying to replicate the same on my VM.

I am having problems installing mongodb. i followed the same process like in the course but on my VM i get a 404 error when i try to install mongodb. Any help will be appreciated. Thanks

Al West:
Helps if you paste the commands that you are using to get the 404.
Instructions are on their website:
https://www.mongodb.com/docs/manual/administration/install-on-linux/

Samson Odunola:
The instructions here is for installing version 7.0. I actually was able to install this but i got a core dump error when i tried to start the service. I did a bit of research and it seems after after version 4.0 a certain type of CPU architecture is needed to run the mongod service.

Samson Odunola:
I installed with ‘sudo yum install mongodb-org’

Samson Odunola:
This is the error i got:
Errors during downloading metadata for repository ‘mongodb-org-4.0’:

Al West:
Are you using Centos/RedHat 9 on an Intel chip?

Al West:
Try https://repo.mongodb.org/yum/redhat/9/mongodb-org/4.2/x86_64/repodata/repomd.xml

Samson Odunola:
yes im using a centos 9 on an intel chip

Samson Odunola:
i have tird to edit the configuration in the repo mongodb-org repo file to version 4.2 but its still not installing

Samson Odunola:
this is my repo file content:

Samson Odunola:
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

Samson Odunola:
This is the error when i try to run to install using sudo yum install mongodb-org:

Last metadata expiration check: 0:07:37 ago on Thu 28 Sep 2023 12:17:32 AM EDT.
No match for argument: mongodb-org
Error: Unable to find a match: mongodb-org

Al West:
Run this before you do an update:

sudo yum clean all

Al West:
Also you need to do an update before you try to install the package. Or else Centos doesn’t know where to find it.

Samson Odunola:
is that with yum update <packagename>

Al West:
No it is just:
yum update

Samson Odunola:
okay

Samson Odunola:
i have done this and i still get the same error

Samson Odunola:
Error: unable to find a match:mongodb-org

Deepak Kumar:
Centos 9 doesn’t have the official package support for the mongodb now. Therefore you have to play with crypto-policies-scripts which can be quite complex and also can’t guarantee of its stability.