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
name=10gen Repository
% 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. Both comments and trackbacks are currently closed.