|
1 | | -title: Import the MongoDB public key |
| 1 | +title: Import the MongoDB public key. |
2 | 2 | stepnum: 1 |
3 | 3 | ref: import-key |
4 | 4 | action: |
5 | 5 | language: sh |
6 | 6 | code: | |
7 | 7 | sudo rpm --import https://www.mongodb.org/static/pgp/server-3.6.asc |
8 | 8 | --- |
9 | | -title: Configure the package management system (``zypper``). |
| 9 | +title: Add the MongoDB repository. |
10 | 10 | stepnum: 2 |
11 | 11 | ref: config-zypper |
12 | 12 | pre: | |
13 | | - Add the repository so that you can install MongoDB using ``zypper``. |
14 | | -
|
| 13 | + Add the repository so that you can install MongoDB. |
| 14 | + |
15 | 15 | .. versionchanged:: 3.0 |
16 | 16 |
|
17 | 17 | .. include:: /includes/extracts/fact-3.0-linux-package-repo-tutorial.rst |
18 | 18 |
|
19 | | -action: |
20 | | - - heading: For MongoDB 3.6 |
21 | | - pre: | |
22 | | - Run the command appropriate for your version of SUSE: |
| 19 | + Use the command appropriate for your version of SUSE: |
| 20 | +
|
| 21 | + .. note:: |
| 22 | +
|
| 23 | + SUSE 15 support was added with MongoDB v3.6.16. |
| 24 | +
|
| 25 | +content: | |
| 26 | + .. tabs:: |
| 27 | +
|
| 28 | + .. tab:: SUSE 15 |
| 29 | + :tabid: suse-15 |
23 | 30 |
|
24 | | - SUSE 12 |
25 | | - .. class:: copyable-code |
26 | 31 | .. code-block:: sh |
27 | 32 |
|
28 | | - sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.6/x86_64/" mongodb |
| 33 | + sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/15/mongodb-org/{+package-branch+}/x86_64/" mongodb |
29 | 34 |
|
30 | | - - heading: For versions of MongoDB *earlier* than 3.6 |
31 | | - pre: | |
32 | | - To install MongoDB packages from a previous :ref:`release |
33 | | - series <release-version-numbers>` such as 3.4, you can |
34 | | - specify the release series in the repository configuration. |
| 35 | + .. tab:: SUSE 12 |
| 36 | + :tabid: suse-12 |
35 | 37 |
|
36 | | - For example, to restrict your SUSE 12 system to the 3.4 release |
37 | | - series, use the following command: |
38 | | - copyable: true |
39 | | - language: sh |
40 | | - code: | |
41 | | - sudo zypper addrepo --no-gpgcheck https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.4/x86_64/ mongodb |
| 38 | + .. code-block:: sh |
| 39 | +
|
| 40 | + sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/{+package-branch+}/x86_64/" mongodb |
| 41 | +
|
| 42 | + To install MongoDB packages from a previous :ref:`release |
| 43 | + series <release-version-numbers>` such as 3.4, you can |
| 44 | + specify the release series in the repository configuration. |
| 45 | +
|
| 46 | + For example, to restrict your SUSE 12 system to the 3.4 release |
| 47 | + series, use the following command: |
| 48 | +
|
| 49 | + .. code-block:: sh |
| 50 | +
|
| 51 | + sudo zypper addrepo --no-gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.4/x86_64/" mongodb |
42 | 52 | --- |
43 | 53 | title: Install the MongoDB packages. |
44 | 54 | stepnum: 3 |
|
0 commit comments