[DOCS-5472] Clarify instructions for installing specific mongodb versions on Ubuntu Created: 20/May/15  Updated: 30/Oct/23  Resolved: 24/Jun/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.6, mongodb-3.0
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: installation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu


Issue Links:
Related
Participants:
Days since reply: 8 years, 33 weeks, 6 days ago

 Description   

For ubuntu installations, to install a specific version of mongodb, that version must be specified for all installed components:

sudo apt-get install -y mongodb-org=2.6.9 mongodb-org-server=2.6.9 mongodb-org-shell=2.6.9 mongodb-org-mongos=2.6.9 mongodb-org-tools=2.6.9

This results in all packages being installed with the specified version:

Setting up mongodb-org-shell (2.6.9) ...
Setting up mongodb-org-server (2.6.9) ...
Setting up mongodb-org-mongos (2.6.9) ...
Setting up mongodb-org-tools (2.6.9) ...
Setting up mongodb-org (2.6.9) ...

However, if only some components have a specified version, only those components are installed with the specified version. The other components are installed with the latest available version.

sudo apt-get install -y mongodb-org=2.6.9 mongodb-org-server=2.6.9
...
Setting up mongodb-org-shell (3.0.3) ...
Setting up mongodb-org-server (2.6.9) ...
Setting up mongodb-org-mongos (3.0.3) ...
Setting up mongodb-org-tools (3.0.3) ...
Setting up mongodb-org (2.6.9) ...

While it does say in the documentation to specify individual components, we could be clearer about why this is necesary, ie. that components are installed independently and their individual versions are separate from the others'.

What makes this misleading is that to install the latest version of all packages, you would just run the following:

sudo apt-get install -y mongodb-org

However tagging mongodb-org with a version does not install that version of all packages.

This affects both v2.6 and v3.0, perhaps older versions as well:
http://docs.mongodb.org/v2.6/tutorial/install-mongodb-on-ubuntu/
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/



 Comments   
Comment by Githook User [ 25/Jun/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-5472: Refactor DEB install guide, and explain more about version pinning

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/ef08ab3d74479d53b344f0329e9cfda141bdb0ba

Generated at Thu Feb 08 07:50:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.