Install MongoDB with Yum in CentOS 5

CentOS Repository not provide Mongo DB server package,

[root@toons ~]# yum search mongo

So you add new repository for Mongo DB,

For all 64-bit RPM-based distros with yum, put this at /etc/yum.repos.d/10gen.repo:

[root@toons ~]# nano /etc/yum.repos.d/10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0

For all 32-bit RPM-based distros with yum, put this at /etc/yum.repos.d/10gen.repo:

[root@toons ~]# nano /etc/yum.repos.d/10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686
gpgcheck=0

Leave a Reply