Skip to content

Commit 4d9fc3b

Browse files
(DOCSP-28700): Update mongosh install instructions for jammy (#270)
* (DOCSP-28700): Update mongosh install instructions for jammy * wording * fix' * tweak pgp command * edits * add confirm step * clarity * wording * ordering
1 parent 512de8b commit 4d9fc3b

File tree

2 files changed

+47
-12
lines changed

2 files changed

+47
-12
lines changed

source/includes/steps-install-shell-linux-deb.yaml

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,31 @@ level: 4
44
ref: import-key
55
content: |
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
---
3033
title: Create a list file for MongoDB.
3134
stepnum: 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
...

source/install.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ Select the appropriate tab for your operating system:
9191
Select the appropriate tab based on your Linux distribution and
9292
desired package from the tabs below:
9393

94-
- To install the ``.deb`` package on Ubuntu 20.04 (Focal), Ubuntu
95-
18.04 (Bionic), and Debian, click the ``.deb`` tab.
94+
- To install the ``.deb`` package on Ubuntu 22.04 (Jammy), Ubuntu
95+
20.04 (Focal), Ubuntu 18.04 (Bionic), or Debian, click the
96+
``.deb`` tab.
9697

9798
- To install the ``.rpm`` package on
9899
:abbr:`RHEL (Red Hat Enterprise Linux)` or Amazon Linux 2,

0 commit comments

Comments
 (0)