@@ -95,9 +95,9 @@ Follow These Steps
9595 .. tab:: MongoDB Community Edition
9696 :tabid: mdb-comm
9797
98- Create a ``/etc/yum.repos.d/mongodb-org-5.0 .repo``
98+ Create a ``/etc/yum.repos.d/mongodb-org-{+mdbVersion+} .repo``
9999 file so that you can install {+atlas-cli+} directly using
100- ``yum``. Replace ``5.0 `` with your
100+ ``yum``. Replace ``{+mdbVersion+} `` with your
101101 edition of MongoDB.
102102
103103 .. tabs::
@@ -108,33 +108,33 @@ Follow These Steps
108108 .. code-block:: text
109109 :emphasize-lines: 1
110110
111- [mongodb-org-5.0 ]
111+ [mongodb-org-{+mdbVersion+} ]
112112 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/
114114 gpgcheck=1
115115 enabled=1
116- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
116+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
117117
118118 .. tab:: Amazon Linux
119119 :tabid: amazon
120120
121121 .. code-block:: text
122122 :emphasize-lines: 1
123123
124- [mongodb-org-5.0 ]
124+ [mongodb-org-{+mdbVersion+} ]
125125 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/
127127 gpgcheck=1
128128 enabled=1
129- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
129+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
130130
131131 .. tab:: MongoDB Enterprise Edition
132132 :tabid: mdb-ent
133133
134134 Create a
135- ``/etc/yum.repos.d/mongodb-enterprise-5.0 .repo`` file
135+ ``/etc/yum.repos.d/mongodb-enterprise-{+mdbVersion+} .repo`` file
136136 so that you can install {+atlas-cli+} directly using
137- ``yum``. Replace ``5.0 `` with your
137+ ``yum``. Replace ``{+mdbVersion+} `` with your
138138 edition of MongoDB.
139139
140140 .. tabs::
@@ -145,25 +145,25 @@ Follow These Steps
145145 .. code-block:: text
146146 :emphasize-lines: 1
147147
148- [mongodb-enterprise-5.0 ]
148+ [mongodb-enterprise-{+mdbVersion+} ]
149149 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/
151151 gpgcheck=1
152152 enabled=1
153- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
153+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
154154
155155 .. tab:: Amazon Linux
156156 :tabid: amazon
157157
158158 .. code-block:: text
159159 :emphasize-lines: 1
160160
161- [mongodb-enterprise-5.0 ]
161+ [mongodb-enterprise-{+mdbVersion+} ]
162162 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/
164164 gpgcheck=1
165165 enabled=1
166- gpgkey=https://pgp.mongodb.com/server-5.0 .asc
166+ gpgkey=https://pgp.mongodb.com/server-{+mdbVersion+} .asc
167167
168168 .. step:: Install the {+atlas-cli+} and {+mongosh+}.
169169
@@ -193,13 +193,13 @@ Follow These Steps
193193
194194 From a terminal, issue the following command to import the MongoDB
195195 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
198198 edition of MongoDB.
199199
200200 .. code-block:: sh
201201
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 -
203203
204204 A successful command returns an ``OK``.
205205
@@ -210,77 +210,126 @@ Follow These Steps
210210 .. tab:: MongoDB Community Edition
211211 :tabid: mdb-comm
212212
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.
217214
218215 .. tabs::
219216
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
222244
223- .. code-block:: sh
245+ .. code-block:: sh
224246
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
226248
227- .. tab:: Ubuntu 18.04 (Bionic)
228- :tabid: comm-bionic
249+ .. tab:: Debian
250+ :tabid: debian
229251
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.
231257
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::
233259
234- .. tab:: Debian 10 (Buster)
235- :tabid: comm-deb-10
260+ .. tab:: Debian 10 (Buster)
261+ :tabid: comm-deb-10
236262
237- .. code-block:: sh
263+ .. code-block:: sh
238264
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
240266
241- .. tab:: Debian 9 (Stretch)
242- :tabid: comm-deb-9
267+ .. tab:: Debian 9 (Stretch)
268+ :tabid: comm-deb-9
243269
244- .. code-block:: sh
270+ .. code-block:: sh
245271
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
247273
248274 .. tab:: MongoDB Enterprise Edition
249275 :tabid: mdb-ent
250276
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.
254278
255279 .. tabs::
256280
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
259306
260- .. code-block:: sh
307+ .. code-block:: sh
261308
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
263310
264- .. tab:: Ubuntu 18.04 (Bionic)
265- :tabid: ent-bionic
311+ .. tab:: Debian
312+ :tabid: debian
266313
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.
268317
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::
270319
271- .. tab:: Debian 10 (Buster)
272- :tabid: ent-deb-10
320+ .. tab:: Debian 10 (Buster)
321+ :tabid: ent-deb-10
273322
274- .. code-block:: sh
323+ .. code-block:: sh
275324
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
277326
278- .. tab:: Debian 9 (Stretch)
279- :tabid: ent-deb-9
327+ .. tab:: Debian 9 (Stretch)
328+ :tabid: ent-deb-9
280329
281- .. code-block:: sh
330+ .. code-block:: sh
282331
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
284333
285334 .. step:: Refresh the package database.
286335
0 commit comments