@@ -95,9 +95,9 @@ Follow These Steps
95
95
.. tab:: MongoDB Community Edition
96
96
:tabid: mdb-comm
97
97
98
- Create a ``/etc/yum.repos.d/mongodb-org-5.0 .repo``
98
+ Create a ``/etc/yum.repos.d/mongodb-org-{+mdbVersion+} .repo``
99
99
file so that you can install {+atlas-cli+} directly using
100
- ``yum``. Replace ``5.0 `` with your
100
+ ``yum``. Replace ``{+mdbVersion+} `` with your
101
101
edition of MongoDB.
102
102
103
103
.. tabs::
@@ -108,33 +108,33 @@ Follow These Steps
108
108
.. code-block:: text
109
109
:emphasize-lines: 1
110
110
111
- [mongodb-org-5.0 ]
111
+ [mongodb-org-{+mdbVersion+} ]
112
112
name=MongoDB Repository
113
- baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0 /x86_64/
113
+ baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/{+mdbVersion+} /x86_64/
114
114
gpgcheck=1
115
115
enabled=1
116
- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
116
+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
117
117
118
118
.. tab:: Amazon Linux
119
119
:tabid: amazon
120
120
121
121
.. code-block:: text
122
122
:emphasize-lines: 1
123
123
124
- [mongodb-org-5.0 ]
124
+ [mongodb-org-{+mdbVersion+} ]
125
125
name=MongoDB Repository
126
- baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0 /x86_64/
126
+ baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/{+mdbVersion+} /x86_64/
127
127
gpgcheck=1
128
128
enabled=1
129
- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
129
+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
130
130
131
131
.. tab:: MongoDB Enterprise Edition
132
132
:tabid: mdb-ent
133
133
134
134
Create a
135
- ``/etc/yum.repos.d/mongodb-enterprise-5.0 .repo`` file
135
+ ``/etc/yum.repos.d/mongodb-enterprise-{+mdbVersion+} .repo`` file
136
136
so that you can install {+atlas-cli+} directly using
137
- ``yum``. Replace ``5.0 `` with your
137
+ ``yum``. Replace ``{+mdbVersion+} `` with your
138
138
edition of MongoDB.
139
139
140
140
.. tabs::
@@ -145,25 +145,25 @@ Follow These Steps
145
145
.. code-block:: text
146
146
:emphasize-lines: 1
147
147
148
- [mongodb-enterprise-5.0 ]
148
+ [mongodb-enterprise-{+mdbVersion+} ]
149
149
name=MongoDB Repository
150
- baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/5.0 /$basearch/
150
+ baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/{+mdbVersion+} /$basearch/
151
151
gpgcheck=1
152
152
enabled=1
153
- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
153
+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
154
154
155
155
.. tab:: Amazon Linux
156
156
:tabid: amazon
157
157
158
158
.. code-block:: text
159
159
:emphasize-lines: 1
160
160
161
- [mongodb-enterprise-5.0 ]
161
+ [mongodb-enterprise-{+mdbVersion+} ]
162
162
name=MongoDB Enterprise Repository
163
- baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/5.0 /$basearch/
163
+ baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/{+mdbVersion+} /$basearch/
164
164
gpgcheck=1
165
165
enabled=1
166
- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
166
+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
167
167
168
168
.. step:: Install the {+atlas-cli+} and {+mongosh+}.
169
169
@@ -193,13 +193,13 @@ Follow These Steps
193
193
194
194
From a terminal, issue the following command to import the MongoDB
195
195
public GPG Key from
196
- ``https://pgp.mongodb.com/server-5.0 .asc``.
197
- Replace ``5.0 `` with your
196
+ ``https://pgp.mongodb.com/server-{+mdbVersion+} .asc``.
197
+ Replace ``{+mdbVersion+} `` with your
198
198
edition of MongoDB.
199
199
200
200
.. code-block:: sh
201
201
202
- wget -qO - https://pgp.mongodb.com/server-5.0 .asc | sudo apt-key add -
202
+ wget -qO - https://pgp.mongodb.com/server-{+mdbVersion+} .asc | sudo apt-key add -
203
203
204
204
A successful command returns an ``OK``.
205
205
@@ -210,77 +210,126 @@ Follow These Steps
210
210
.. tab:: MongoDB Community Edition
211
211
:tabid: mdb-comm
212
212
213
- Create the list file
214
- ``/etc/apt/sources.list.d/mongodb-org-5.0.list`` for
215
- your version of Ubuntu. Replace ``5.0`` with your
216
- edition of MongoDB.
213
+ Select Ubuntu or Debian, then select your version.
217
214
218
215
.. tabs::
219
216
220
- .. tab:: Ubuntu 20.04 (Focal)
221
- :tabid: comm-focal
217
+ .. tab:: Ubuntu
218
+ :tabid: ubuntu
219
+
220
+ Create the list file
221
+ ``/etc/apt/sources.list.d/mongodb-org-{+mdbVersion+}.list``
222
+ for your version of
223
+ Ubuntu. Replace ``{+mdbVersion+}`` with your
224
+ edition of MongoDB.
225
+
226
+ .. tabs::
227
+
228
+ .. tab:: Ubuntu 22.04 (Jammy)
229
+ :tabid: comm-jammy
230
+
231
+ .. code-block:: sh
232
+
233
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdbVersion+}.list
234
+
235
+ .. tab:: Ubuntu 20.04 (Focal)
236
+ :tabid: comm-focal
237
+
238
+ .. code-block:: sh
239
+
240
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdbVersion+}.list
241
+
242
+ .. tab:: Ubuntu 18.04 (Bionic)
243
+ :tabid: comm-bionic
222
244
223
- .. code-block:: sh
245
+ .. code-block:: sh
224
246
225
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal /mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
247
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic /mongodb-org/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdbVersion+} .list
226
248
227
- .. tab:: Ubuntu 18.04 (Bionic)
228
- :tabid: comm-bionic
249
+ .. tab:: Debian
250
+ :tabid: debian
229
251
230
- .. code-block:: sh
252
+ Create the list file
253
+ ``/etc/apt/sources.list.d/mongodb-org-{+mdbVersion+}.list``
254
+ for your version of
255
+ Debian. Replace ``{+mdbVersion+}`` with your
256
+ edition of MongoDB.
231
257
232
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
258
+ .. tabs::
233
259
234
- .. tab:: Debian 10 (Buster)
235
- :tabid: comm-deb-10
260
+ .. tab:: Debian 10 (Buster)
261
+ :tabid: comm-deb-10
236
262
237
- .. code-block:: sh
263
+ .. code-block:: sh
238
264
239
- echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
265
+ echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/{+mdbVersion+} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdbVersion+} .list
240
266
241
- .. tab:: Debian 9 (Stretch)
242
- :tabid: comm-deb-9
267
+ .. tab:: Debian 9 (Stretch)
268
+ :tabid: comm-deb-9
243
269
244
- .. code-block:: sh
270
+ .. code-block:: sh
245
271
246
- echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
272
+ echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/{+mdbVersion+} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdbVersion+} .list
247
273
248
274
.. tab:: MongoDB Enterprise Edition
249
275
:tabid: mdb-ent
250
276
251
- Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list``
252
- file for MongoDB. Replace ``5.0`` with your
253
- edition of MongoDB.
277
+ Select Ubuntu or Debian, then select your version.
254
278
255
279
.. tabs::
256
280
257
- .. tab:: Ubuntu 20.04 (Focal)
258
- :tabid: ent-focal
281
+ .. tab:: Ubuntu
282
+ :tabid: ubuntu
283
+
284
+ Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list`` file for your version of Ubuntu.
285
+ Replace ``{+mdbVersion+}`` with your edition of
286
+ MongoDB.
287
+
288
+ .. tabs::
289
+
290
+ .. tab:: Ubuntu 22.04 (Jammy)
291
+ :tabid: ent-jammy
292
+
293
+ .. code-block:: sh
294
+
295
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu jammy/mongodb-enterprise/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
296
+
297
+ .. tab:: Ubuntu 20.04 (Focal)
298
+ :tabid: ent-focal
299
+
300
+ .. code-block:: sh
301
+
302
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu focal/mongodb-enterprise/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
303
+
304
+ .. tab:: Ubuntu 18.04 (Bionic)
305
+ :tabid: ent-bionic
259
306
260
- .. code-block:: sh
307
+ .. code-block:: sh
261
308
262
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu focal /mongodb-enterprise/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
309
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu bionic /mongodb-enterprise/{+mdbVersion+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
263
310
264
- .. tab:: Ubuntu 18.04 (Bionic)
265
- :tabid: ent-bionic
311
+ .. tab:: Debian
312
+ :tabid: debian
266
313
267
- .. code-block:: sh
314
+ Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list`` file for your version of Debian.
315
+ Replace ``{+mdbVersion+}`` with your edition of
316
+ MongoDB.
268
317
269
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
318
+ .. tabs::
270
319
271
- .. tab:: Debian 10 (Buster)
272
- :tabid: ent-deb-10
320
+ .. tab:: Debian 10 (Buster)
321
+ :tabid: ent-deb-10
273
322
274
- .. code-block:: sh
323
+ .. code-block:: sh
275
324
276
- echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
325
+ echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/{+mdbVersion+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
277
326
278
- .. tab:: Debian 9 (Stretch)
279
- :tabid: ent-deb-9
327
+ .. tab:: Debian 9 (Stretch)
328
+ :tabid: ent-deb-9
280
329
281
- .. code-block:: sh
330
+ .. code-block:: sh
282
331
283
- echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
332
+ echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/{+mdbVersion+} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
284
333
285
334
.. step:: Refresh the package database.
286
335
0 commit comments