I am trying to install mongodb 3.2 on a CentOS 7 machine and facing issues in locating the packages.
I have updated the repo file as per the documentation:
Follow the below steps to install MongoDB on CentOS
# vi /etc/yum.repos.d/mongodb.repo
i
and paste the below lines in the file[MongoDB]
name=MongoDB Repository
baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=0
enabled=1
Press esc
to save the vim file then enter :wq
to quit the saved file.
3.Install MongoDB server
yum install mongodb-org
# systemctl start mongod.service # For CentOS 7
# service mongod restart # For CentOS 6/5
mongod --version
Referance: Installing MongoDB on CentOS