Can't install MongoDB on Fedora 38

I followed steps from this article: How to get MongoDB Server on Fedora - Fedora Magazine

However, I am getting this error:
I am trying to install version 6.0

Edit: I have just tried to install version 4.4, it’s ok but I want to install the latest version.

dnf install mongodb-org
RPM Fusion for Fedora 38 - Nonfree - Steam                                                                                                                                       13 kB/s | 5.7 kB     00:00    
Error: 
 Problem: conflicting requests
  - package mongodb-org-6.0.0-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.1-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.2-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.3-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.4-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.5-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.6-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.7-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-6.0.8-1.el8.x86_64 from mongodb-upstream requires mongodb-org-tools, but none of the providers can be installed
  - package mongodb-org-tools-6.0.0-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.1-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.2-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.3-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.4-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.5-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.6-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.7-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - package mongodb-org-tools-6.0.8-1.el8.x86_64 from mongodb-upstream requires mongodb-org-database-tools-extra, but none of the providers can be installed
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.0-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.1-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.2-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.3-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.4-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.5-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.6-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.7-1.el8.x86_64 from mongodb-upstream
  - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-6.0.8-1.el8.x86_64 from mongodb-upstream
(try to add '--skip-broken' to skip uninstallable packages)

How can I install the latest version of MongoDB on Fedora 38?

See https://jira.mongodb.org/browse/SERVER-58870

MongoDB is not provided by Fedora (license issue) and MongoDB does not build/provide packages for Fedora. Installing a RHEL 8 package may or may not work. The issue here is that platform-python was dropped in Fedora 30.

You can try to install from the rpm directly without satisfying all dependencies, but I would try this in virtual machine or toolbox first.

rpm -i https://repo.mongodb.org/yum/redhat/9/mongodb-org/6.0/x86_64/RPMS/mongodb-org-server-6.0.8-1.el9.x86_64.rpm

I would recommend running Mongo in a docker or podman container, totally independent of your base os, see https://hub.docker.com/_/mongo, https://www.tutorialworks.com/podman-systemd/, Running MongoDB with Podman, and Setting up mongod using podman · GitHub

1 Like

I will try Docker. Thank you