-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: mongodb-2.6, mongodb-3.0
-
Component/s: manual
-
Labels:
-
Environment:Ubuntu
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/