Install MongoDB 4.4 on Fedora 32

Hender R
1 min readJan 15, 2021

MongoDB version was updated to 4.4 and has a problem to install for a single error in the yum repo config file.

This will be the pathway to install mongodb in a breeze.

Step 1: Update Your System

$ sudo dnf update

Steep 2. Add mongo-db repositories

$ sudo vi /etc/yum.repos.d/mongodb-org-4.4.repo
or
$ sudo nano /etc/yum.repos.d/mongodb-org-4.4.repo

Add the following lines to the file (Note: ($releasever) was substituted with 8Server)

[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8Server/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

Step 3: Install MongoDB on the machine

$ sudo dnf -y install mongodb-org

Step 4: Check if mongo is successfully installed

$ mongo --version

Step 5: Running MongoDB service as daemon of SystemD

$ sudo systemctl enable mongod --now

That is all. That Linus Torvals and Richard Stallman bless your hardware and let your Linux system be compatible. Amen.

--

--

Hender R
0 Followers

I'm a physicist who expend a lot of hours on linux systems and software development.