@@ -3,30 +3,7 @@ stepnum: 1
33level : 4
44ref : import-key
55content : |
6- From a terminal, issue the following command to import the
7- MongoDB public GPG Key from `<https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc>`_:
8-
9- .. code-block:: bash
10-
11- wget -qO - https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo apt-key add -
12-
13- The operation should respond with an ``OK``.
14-
15- However, if you receive an error indicating that ``gnupg`` is not
16- installed, you can:
17-
18- #. Install ``gnupg`` and its required libraries using the following command:
19-
20- .. code-block:: bash
21-
22- sudo apt-get install gnupg
23-
24- #. Once installed, retry importing the key:
25-
26- .. code-block:: bash
27-
28- wget -qO - https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo apt-key add -
29-
6+ .. include:: /includes/curl-apt-gpg
307 ---
318title : Create a list file for MongoDB.
329stepnum : 2
@@ -44,35 +21,29 @@ content: |
4421
4522 .. tabs::
4623
47- tabs:
48-
49- - id: jammy
50- name: Ubuntu 22.04 (Jammy)
51- content: |
24+ .. tab:: Ubuntu 22.04 (Jammy)
25+ :tabid: jammy
5226
53- The following instruction is for **Ubuntu 22.04 (Jammy)**.
27+ The following instruction is for **Ubuntu 22.04 (Jammy)**.
5428
55- Create the
56- ``/etc/apt/sources.list.d/mongodb-org-{+version+}.list``
57- file for Ubuntu 22.04 (Jammy):
29+ Create the ``/etc/apt/sources.list.d/mongodb-org-{+version+}.list``
30+ file for Ubuntu 22.04 (Focal):
5831
59- .. code-block:: bash
32+ .. code-block:: bash
6033
61- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
34+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
6235
63- - id: focal
64- name: Ubuntu 20.04 (Focal)
65- content: |
36+ .. tab:: Ubuntu 20.04 (Focal)
37+ :tabid: focal
6638
67- The following instruction is for **Ubuntu 20.04 (Focal)**.
39+ The following instruction is for **Ubuntu 20.04 (Focal)**.
6840
69- Create the
70- ``/etc/apt/sources.list.d/mongodb-org-{+version+}.list``
71- file for Ubuntu 20.04 (Focal):
41+ Create the ``/etc/apt/sources.list.d/mongodb-org-{+version+}.list``
42+ file for Ubuntu 20.04 (Focal):
7243
73- .. code-block:: bash
44+ .. code-block:: bash
7445
75- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
46+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{+version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+version+}.list
7647
7748 ---
7849title : Reload local package database.
0 commit comments