I want to install MongoDB on Fedora Linux. On running the command,
sudo dnf install mongodb-org
I’m getting the following error:
Error:
Problem: conflicting requests
- package mongodb-org-4.2.0-1.el7.x86_64 from mongodb-4.2 requires mongodb-org-shell = 4.2.0, but none of the providers can be installed
[...]
- nothing provides libssl.so.10()(64bit) needed by mongodb-org-shell-4.2.9-1.el7.x86_64 from mongodb-4.2
(try to add '--skip-broken' to skip uninstallable packages)
Update your system using the command:
sudo dnf update
Now, add MongoDB repositories with this command:
sudo nano /etc/yum.repos.d/mongodb.repo
[mongodb-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
EOF
Install MongoDB :
sudo dnf -y install mongodb-org