DEV Community

Ankit Sahu
Ankit Sahu

Posted on

Install MongoDB 4.4 on Fedora

Add the following in yum repository configuration file

$ sudo vi /etc/yum.repos.d/mongodb.repo
Enter fullscreen mode Exit fullscreen mode
[Mongodb]
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
Enter fullscreen mode Exit fullscreen mode

Install MongoDB

$ sudo dnf install mongodb-org
Enter fullscreen mode Exit fullscreen mode

Start MongoDB Service

$ sudo systemctl enable mongod.service
$ sudo systemctl start mongod.service
Enter fullscreen mode Exit fullscreen mode

Top comments (0)