Fedora 38 - How install MongoDB 7.0

Can anyone help me install MongoDB 7.0 and mongosh on a Fedora 38 system.

Fedora itself is almost perfect but I have to work with MongoDB and I can’t install it on Fedora 38.

This is the first “trouble” I’ve encountered in Fedora and the only one that can direct me to Ubuntu :frowning: which basically doesn’t want to work on new hardware.

1 Like
sudo tee /etc/yum.repos.d/mongodb.repo << "EOF" > /dev/null
sudo rpm --import https://www.mongodb.org/static/pgp/server-7.0.asc
sudo dnf install mongodb-org
sudo systemctl enable mongod.service
sudo systemctl restart mongod.service

Thank you for the fast reponse.
Your answer helped me a lot.

I was able to install MongoDB.

I have one more question.
When I started the mongo server with the command:

sudo systemctl start mongod

Fedora 38 triggered a Security Alert message, so I choose ignore alert. It is correct?

ignoring the alert is not necessarily bad, but it may be due to either SELinux or a network warning. Identifying the cause and making sure it is not actually a security issue would be the best action.

There should be an entry in journalctl -b that would tell you the cause of that warning and allow you to select what action you should take.

It worked for me, thank you very much