I am trying to install Mongo version 3.6 on CentOS, but the installation consistently fails with the following error:
`https://repo.mongodb.org/yum/redhat//mongodb-org/3.6/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
failure: repodata/repomd.xml from mongodb-org-3.6: [Errno 256] No more mirrors to try.
https://repo.mongodb.org/yum/redhat//mongodb-org/3.6/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found`
Here’s the content of the repo file that I am using. I have copied this from the MongoDB website:
`[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat//mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc`
I have looked up on many forums, but I could not find a resolution to this issue. Could you help with the installation? Let me know what I am doing wrong?
3
Answers
Change your url by indicating CentOS 7:
** EDIT **
INSTALL ADDITIONAL COMPONENTS
Create a
/etc/yum.repos.d/mongodb-org-3.6.repo
file so that you can install MongoDB directly usingyum
:Use the following repository file:
Install the MongoDB packages with the following command:
or