@@ -4,28 +4,31 @@ level: 4
44ref : import-key
55content : |
66 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>`_:
7+ MongoDB public GPG key from `<https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc>`_:
88
99 .. code-block:: sh
1010
11- wget -qO - https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo apt-key add -
11+ wget -qO- https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo tee /etc/ apt/trusted.gpg.d/server-{+pgp-version+}.asc
1212
13- The operation should respond with an ``OK``.
13+ The previous command writes the GPG key to your system's
14+ ``/etc/apt/trusted.gpg.d`` folder and prints the key to your
15+ terminal. You do not need to copy or save the key that is printed to
16+ the terminal.
1417
15- However, if you receive an error indicating that ``gnupg`` is not
16- installed, you can :
18+ If you receive an error indicating that ``gnupg`` is not installed,
19+ perform the following steps :
1720
1821 #. Install ``gnupg`` and its required libraries using the following command:
1922
2023 .. code-block:: sh
2124
2225 sudo apt-get install gnupg
2326
24- #. Once installed, retry importing the key:
27+ #. Retry importing the key:
2528
2629 .. code-block:: sh
2730
28- wget -qO - https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo apt-key add -
31+ wget -qO- https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc | sudo tee /etc/ apt/trusted.gpg.d/server-{+pgp-version+}.asc
2932 ---
3033title : Create a list file for MongoDB.
3134stepnum : 2
@@ -39,17 +42,32 @@ content: |
3942
4043 Click on the appropriate tab for your version of Ubuntu.
4144 If you are unsure of what Ubuntu version the host is running,
42- open a terminal or shell on the host and execute ``lsb_release -dc``.
45+ open a terminal or shell on the host and run ``lsb_release -dc``.
4346
4447 .. tabs::
4548
4649 tabs:
50+ - id: jammy
51+ name: Ubuntu 22.04 (Jammy)
52+ content: |
53+
54+ The following instruction is for **Ubuntu 22.04 (Jammy)**.
55+ For other Ubuntu releases, click the appropriate tab.
56+
57+ Create the
58+ ``/etc/apt/sources.list.d/mongodb-org-{+mdb-version+}.list``
59+ file for Ubuntu 22.04 (Jammy):
60+
61+ .. code-block:: sh
62+
63+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{+mdb-version+} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{+mdb-version+}.list
64+
4765 - id: focal
4866 name: Ubuntu 20.04 (Focal)
4967 content: |
5068
5169 The following instruction is for **Ubuntu 20.04 (Focal)**.
52- For Ubuntu 18.04 (Bionic) click on the appropriate tab.
70+ For other Ubuntu releases, click the appropriate tab.
5371
5472 Create the
5573 ``/etc/apt/sources.list.d/mongodb-org-{+mdb-version+}.list``
@@ -64,7 +82,7 @@ content: |
6482 content: |
6583
6684 The following instruction is for **Ubuntu 18.04
67- (Bionic)**. For Ubuntu 20.04 (Focal) click on the
85+ (Bionic)**. For other Ubuntu releases, click the
6886 appropriate tab.
6987
7088 Create the
@@ -113,4 +131,20 @@ content: |
113131 .. code-block:: sh
114132
115133 sudo apt-get install -y mongodb-mongosh-shared-openssl3
134+ ---
135+ title : Confirm that ``mongosh`` installed successfully.
136+ stepnum : 5
137+ level : 4
138+ ref : confirm
139+ content : |
140+
141+ To confirm that ``mongosh`` installed successfully, run the following
142+ command:
143+
144+ .. code-block:: sh
145+
146+ mongosh --version
147+
148+ Your terminal should respond with the version of ``mongosh`` you have
149+ installed.
116150 ...
0 commit comments