How to point to the right MongoDB Repository release ?

59 views
Skip to first unread message

A. Jalil @AJ

unread,
Oct 13, 2015, 6:42:41 PM10/13/15
to mongodb-user
Please note, in my repo below, you see MongoDB 2.6 Repository - that's where things got off track in my deployment.. How to make sure I am using MongoDB 2.6.4 Repository and NOT  2.6.11 Repository ?

Now, I need repo  2.6.11 Repository  -  Where/how to get the repo from ?

$ cat mongodb-org.repo
[mongodb-org-2.6]
name=MongoDB 2.6 Repository
gpgcheck=0
enabled=1

Thanks again !

Stephen Steneker

unread,
Oct 13, 2015, 10:22:22 PM10/13/15
to mongodb-user

On Wednesday, 14 October 2015 09:42:41 UTC+11, A. Jalil @AJ wrote:

Please note, in my repo below, you see MongoDB 2.6 Repository - that's where things got off track in my deployment.. How to make sure I am using MongoDB 2.6.4 Repository and NOT  2.6.11 Repository ?

Now, I need repo  2.6.11 Repository  -  Where/how to get the repo from ?

Hi AJ,

That repository includes all official MongoDB RPM packages for 2.6. You can manually confirm available packages by visiting the “baseurl” in a browser and viewing the “RPMS” directory.

Have you done a yum update to refresh your list of available packages?

If your package list is current, you could also check if the mongodb-org packages have been pinned to a specific version in /etc/yum.conf

Regards,
Stephen

A. Jalil @AJ

unread,
Oct 13, 2015, 11:27:22 PM10/13/15
to mongodb-user
Yes I did run <yum update> successfully.

> Here is my yum.conf

$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=system-release
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
deltarpm=0

>> So my delima as you can see when I check version below that my instance is already v2.6.11 

# mongod --version
db version v2.6.11
2015-10-13T21:54:51.495-0500 git version: d00c1735675c457f75a12d530bee85421f0c5548

I am not sure if I am following you correctly. Currently I have an instance v2.6.11 already installed - you are saying that the repository includes all official MongoDB, I got that, but my issue is how to get back to v2.6.4 ?

Lets say I remove v2.6.11 or I have a new server -  considering my repo I posted earlier which I have on /etc/yum.repos.d/mongodb-org.repo  how do I make sure v2.6.4 is installed and not v2.6.11 ?

My old sever that I am deploying to AWS has v2.6.4 and would like to keep the same version during the deployment..


Thanks.
@AJ

Stephen Steneker

unread,
Oct 14, 2015, 12:40:45 AM10/14/15
to mongodb-user

On Wednesday, 14 October 2015 14:27:22 UTC+11, A. Jalil @AJ wrote:

I am not sure if I am following you correctly. Currently I have an instance v2.6.11 already installed - you are saying that the repository includes all official MongoDB, I got that, but my issue is how to get back to v2.6.4 ?

Hi AJ,

Sorry, misread which version you were after as I was thinking of your earlier question.

You can choose a specific version by appending the package version to the name, eg:

sudo yum install -y mongodb-org-2.6.4 mongodb-org-server-2.6.4 mongodb-org-shell-2.6.4 mongodb-org-mongos-2.6.4 mongodb-org-tools-2.6.4

For more info, see: http://docs.mongodb.org/v2.6/tutorial/install-mongodb-on-red-hat/#install-the-mongodb-packages-and-associated-tools

Lets say I remove v2.6.11 or I have a new server -  considering my repo I posted earlier which I have on /etc/yum.repos.d/mongodb-org.repo  how do I make sure v2.6.4 is installed and not v2.6.11 ?

My old sever that I am deploying to AWS has v2.6.4 and would like to keep the same version during the deployment..

There have been a number of significant security and stability fixes since MongoDB 2.6.4 was released in August last year:
http://docs.mongodb.org/manual/release-notes/2.6-changelog/

Newer 2.6.x releases are binary compatible, so if you are provisioning a new environment I would encourage you to upgrade to the latest 2.6.x release as well.

Regards,
Stephen

A. Jalil @AJ

unread,
Oct 14, 2015, 12:59:03 AM10/14/15
to mongodb-user
Thank you Sir ! That's what I was looking for.. And yes, I am planning to upgrade to a newer version once the deployment is complete.. for now, I wanted to compare apples to apples so I don't confuse myself easily since I am new to Mongo :)  Thx.  
Reply all
Reply to author
Forward
0 new messages