Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5472

Clarify instructions for installing specific mongodb versions on Ubuntu

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • mongodb-2.6, mongodb-3.0
    • manual
    • Ubuntu

    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/

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 33 weeks, 6 days ago