I am getting conflict when
[root@MongoDB ec2-user]# sudo yum install mongodb-org Loaded plugins: priorities, security, update-motd, u
You have to remove packages of MongoDB 2.4:
sudo yum remove mongo-10gen*
and then install packages of new MongoDB 2.6:
sudo yum install mongodb-org