Upgrade MongoDB 1.8 to 2.0 on CentOS5.7

As 2.0 Release Notes mentions, it required to remove 1.8 first.

% sudo yum remove mongo-stable-20110131-mongodb_1
% vi /etc/yum.repos.d/10gen.repo
% cat /etc/yum.repos.d/10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
% sudo yum install mongo-10gen-server

When I tried to yum update mongo-stable, got conflict error “Error: mongo18-10gen conflicts with mongo-10gen”. I also needed to rewrite yum repository since my old config pointed at baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/.

It seems epel repository has mongodb package, when you “yum search mongo” you’ll probably find mongodb package aside from mongo-10gen which is a bit confusing.

This entry was posted in Tweak. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>