Hi there,

I have a VPS account which runs CentOS 7.

When I run the

sudo yum install -y mongodb-org

in order to install MongoDB to be used with my NodeJS app, it outputs the following lines:

Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
EA4 | 2.9 kB 00:00:00
cpanel-addons-production-feed | 2.9 kB 00:00:00
cpanel-plugins | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
imunify360 | 2.7 kB 00:00:00
imunify360-rollout-1 | 3.0 kB 00:00:00
imunify360-rollout-2 | 3.0 kB 00:00:00
imunify360-rollout-3 | 3.0 kB 00:00:00
imunify360-rollout-4 | 3.0 kB 00:00:00
h ttps://repo.mongodb.org/yum/centos/7/mongodb-org/4.4/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

h ttps://wiki.centos.org/yum-errors

If above article doesn’t help to resolve this issue please use h ttps://bugs.centos.org/.

mysql-connectors-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
mysql57-community | 2.6 kB 00:00:00
remi-php74 | 3.0 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
ul | 2.9 kB 00:00:00
ul_ipage | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
No package mongodb-org available.
Error: Nothing to do

root@server.abelardolg.com [~]# ls -l /etc/yum.repos.d/mongodb*:

-rw-r–r-- 1 root root 200 Jan 5 09:56 /etc/yum.repos.d/mongodb-org-4.4.repo

cat /etc/yum.repos.d/mongodb*:

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

Thanks for your help and best regards.

1 Like