DEV Community

loading...

Install MongoDB 4.4 on Fedora

Ankit Sahu
Learning new things everyday
・1 min read

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

Discussion (0)