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
sudo dnf update
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)
cat <<EOF | sudo tee /etc/yum.repos.d/mongodb.repo
Step 3: Install MongoDB on the machine
Install MongoDB on Fedora 32/31/30/29/28
sudo dnf -y install mongodb-org
Step 4: Check if mongo is successfully installed
If mongo is successfully installed on your system the above command must return following result.
MongoDB shell version v4.2.7
git version: 51d9fe12b5d19720e72dcd7db0f2f17dd9a19212
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
Congrats! MongoDB is now ready to use on your local system.