How To Install MongoDB 4.2 on Fedora 32/31/30/29

MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.

I am currently using Fedora 32 on my machine, and ran into a bunch of issues and errors trying to get MongoDB installed on my machine.

So this is the solution I figured could help you save a lot of time.

All below commands are to fired on terminal.

Step 1: Update Your System

Best to use an update system

Step 2: Add mongo-db repositories

Add MongoDB 4 repositories to the system

This command is to be fired as a single command (in a single ⏎ enter)

Step 3: Install MongoDB on the machine

Install MongoDB on Fedora 32/31/30/29/28

Step 4: Check if mongo is successfully installed

If mongo is successfully installed on your system the above command must return following result.

Congrats! MongoDB is now ready to use on your local system.

Thank You!

Like My Work? How about buy me a coffee?😉

Computer Engineer and Tech Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store