Setting Up
-
2. Adding MongoDB Repo
Then to Add MongoDB Rpm Repository
Make a MongoDB Configuration File with:sudo nano /etc/yum.repos.d/mongodb-org-5.0.repo
Or:
su -c "nano /etc/yum.repos.d/mongodb-org-5.0.repo"
For EL based Copy and Paste in:
[mongodb-org-5.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0/x86_64/ gpgcheck=1/nenabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
Instead, on Fedora and Mageia try with:
[mongodb-org-5.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/x86_64/ gpgcheck=1/nenabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
Ctrl+Shift+v to Paste in.
Finally, Ctrl+x to Save & Exit from nano Editor.
Contents