I'm trying to install mongodb for my centos 5.1 server via yum. I followed the instructions of creating a .repo file in the yum folder, but it still doesnt work. here's the screenshot of the issue:
I typed yum install mongodb-org but im getting a "nothing to do" error. I'm not sure what i did wrong. I even did yum makecache and still didnt work.
#### cat mongodb.repo
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1
[/etc/yum.repos.d] # yum install mongodb-org
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
addons | 1.9 kB 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
mongodb | 951 B 00:00
updates | 1.9 kB 00:00
wiredtree | 951 B 00:00
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-5 - Base
Finished
7 packages excluded due to repository priority protections
Setting up Install Process
No package mongodb-org available.
Nothing to do
[/etc/yum.repos.d] #
Best Answer
Configure the package management system (YUM).
Create a /etc/yum.repos.d/mongodb.repo file to hold the following configuration information for the MongoDB repository:
If you are running a
64-bit
system, use the following configuration:If you are running a
32-bit
system, which is not recommended for production deployments, use the following configuration:When you install the packages, you choose whether to install the current release or a previous one. This step provides the commands for both.
To install the latest stable version of MongoDB, issue the following command:
To install a specific release of MongoDB, specify each component package individually and append the version number to the package name, as in the following example that installs the 2.6.1` release of MongoDB:
For reference if still stucked with that i found this link,this might be helpful