Skip to content

Commit f27f44a

Browse files
Add specific version instructions for NGINX Agent v2 installation (#859)
* Add specific version instructions for NGINX Agent v2 installation * Remove lsb_release from instructions, use code name instead Remove comma based on PR feedback
1 parent 2f0304d commit f27f44a

File tree

3 files changed

+44
-37
lines changed

3 files changed

+44
-37
lines changed

content/agent/installation-upgrade/installation-oss.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
5050
module_hotfixes=true
5151
```
5252

53-
1. To install `nginx-agent`, run the following command:
53+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
5454

5555
```shell
56-
sudo yum install nginx-agent
56+
sudo yum install -y nginx-agent-2.42.0
5757
```
5858

5959
When prompted to accept the GPG key, verify that the fingerprint matches `8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`, `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, `9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`, and if so, accept it.
@@ -105,11 +105,13 @@ Before you install NGINX Agent for the first time on your system, you need to se
105105
| sudo tee /etc/apt/sources.list.d/nginx-agent.list
106106
```
107107

108-
1. To install `nginx-agent`, run the following commands:
109-
108+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
109+
110+
Update your package index and install a specific version of the nginx-agent. Replace <VERSION_CODENAME> with your current Ubuntu codename (e.g., jammy, noble).
111+
110112
```shell
111113
sudo apt update
112-
sudo apt install nginx-agent
114+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
113115
```
114116

115117
1. Verify the installation:
@@ -166,12 +168,13 @@ Before you install NGINX Agent for the first time on your system, you need to se
166168
http://packages.nginx.org/nginx-agent/debian/ `lsb_release -cs` agent" \ | sudo tee /etc/apt/sources.list.d/nginx-agent.list
167169
```
168170

169-
1. To install `nginx-agent`, run the following commands:
171+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
170172

173+
Update your package index and install a specific version of the nginx-agent. Replace <VERSION_CODENAME> with your current Debian codename (e.g., bullseye).
174+
171175
```shell
172176
sudo apt update
173-
sudo apt install nginx-agent
174-
```
177+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
175178
176179
1. Verify the installation:
177180
@@ -229,10 +232,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
229232
sudo rpmkeys --import /tmp/nginx_signing.key
230233
```
231234
232-
1. To install `nginx-agent`, run the following command:
235+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
233236
234237
```shell
235-
sudo zypper install nginx-agent
238+
sudo zypper install -y nginx-agent=2.42.0
236239
```
237240
238241
1. Verify the installation:
@@ -303,10 +306,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
303306
sudo mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/
304307
```
305308
306-
1. To install `nginx-agent`, run the following command:
309+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
307310
308311
```shell
309-
sudo apk add nginx-agent
312+
sudo apk add nginx-agent=2.42.0
310313
```
311314
312315
1. Verify the installation:
@@ -334,10 +337,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
334337
module_hotfixes=true
335338
```
336339
337-
1. To install `nginx-agent`, run the following command:
340+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
338341
339342
```shell
340-
sudo dnf install nginx-agent
343+
sudo dnf install -y nginx-agent-2.42.0
341344
```
342345
343346
1. When prompted to accept the GPG key, verify that the fingerprint matches
@@ -370,10 +373,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
370373
module_hotfixes=true
371374
```
372375
373-
1. To install `nginx-agent`, run the following command:
376+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
374377
375378
```shell
376-
sudo yum install nginx-agent
379+
sudo yum install -y nginx-agent-2.42.0
377380
```
378381
379382
1. When prompted to accept the GPG key, verify that the fingerprint matches `8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`, `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, `9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`, and if so, accept it.
@@ -396,10 +399,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
396399
}
397400
```
398401
399-
1. To install `nginx-agent`, run the following command:
402+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
400403
401404
```shell
402-
sudo pkg install nginx-agent
405+
sudo pkg install nginx-agent-2.42.0
403406
```
404407
405408
1. Verify the installation:

content/agent/installation-upgrade/installation-plus.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
7373
enabled=1
7474
```
7575

76-
1. To install `nginx-agent`, run the following command:
76+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
7777

7878
```shell
79-
sudo yum install nginx-agent
79+
sudo yum install -y nginx-agent-2.42.0
8080
```
8181

8282
When prompted to accept the GPG key, verify that the fingerprint matches `8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`, `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, `9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`, and if so, accept it.
@@ -131,11 +131,13 @@ Before you install NGINX Agent for the first time on your system, you need to se
131131
| sudo tee /etc/apt/sources.list.d/nginx-agent.list
132132
```
133133

134-
1. To install `nginx-agent`, run the following commands:
134+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
135135

136+
Update your package index and install a specific version of the nginx-agent. Replace <VERSION_CODENAME> with your current Ubuntu codename (e.g., jammy, noble).
137+
136138
```shell
137139
sudo apt update
138-
sudo apt install nginx-agent
140+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
139141
```
140142

141143
1. Verify the installation:
@@ -183,12 +185,14 @@ Before you install NGINX Agent for the first time on your system, you need to se
183185
Acquire::https::pkgs.nginx.com::SslKey "/etc/ssl/nginx/nginx-repo.key";
184186
```
185187

186-
1. To install `nginx-agent`, run the following commands:
188+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
187189

190+
Update your package index and install a specific version of the nginx-agent. Replace <VERSION_CODENAME> with your current Debian codename (e.g., bullseye).
191+
188192
```shell
189193
sudo apt update
190-
sudo apt install nginx-agent
191-
```
194+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
195+
192196
193197
1. Verify the installation:
194198
@@ -265,10 +269,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
265269
sudo rpmkeys --import /tmp/nginx_signing.key
266270
```
267271
268-
1. To install `nginx-agent`, run the following command:
272+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
269273
270274
```shell
271-
sudo zypper install nginx-agent
275+
sudo zypper install -y nginx-agent=2.42.0
272276
```
273277
274278
1. Verify the installation:
@@ -394,10 +398,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
394398
enabled=1
395399
```
396400
397-
1. To install `nginx-agent`, run the following command:
401+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
398402
399403
```shell
400-
sudo dnf install nginx-agent
404+
sudo dnf install -y nginx-agent-2.42.0
401405
```
402406
403407
1. When prompted to accept the GPG key, verify that the fingerprint matches `8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`, `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, `9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`, and if so, accept it.
@@ -442,10 +446,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
442446
enabled=1
443447
```
444448
445-
1. To install `nginx-agent`, run the following command:
449+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
446450
447451
```shell
448-
sudo yum install nginx-agent
452+
sudo yum install -y nginx-agent-2.42.0
449453
```
450454
451455
1. When prompted to accept the GPG key, verify that the fingerprint matches `8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`, `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, `9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`, and if so, accept it.
@@ -496,10 +500,10 @@ Before you install NGINX Agent for the first time on your system, you need to se
496500
SSL_CLIENT_KEY_FILE: "/etc/ssl/nginx/nginx-repo.key" }
497501
```
498502
499-
1. To install `nginx-agent`, run the following command:
503+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
500504
501505
```shell
502-
sudo pkg install nginx-agent
506+
sudo pkg install nginx-agent-2.42.0
503507
```
504508
505509
1. Verify the installation:

content/agent/installation-upgrade/upgrade.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ To upgrade NGINX Agent to a specific **v2.x version**, follow these steps:
6060
sudo apt-get install -y nginx-agent=<specific-version> -o Dpkg::Options::="--force-confold"
6161
```
6262

63-
Example (to upgrade to version 2.41.1~noble):
63+
Example (to upgrade to version 2.42.0~noble):
6464

6565
```shell
66-
sudo apt-get install -y nginx-agent=2.41.1~noble -o Dpkg::Options::="--force-confold"
66+
sudo apt-get install -y nginx-agent=2.42.0~noble -o Dpkg::Options::="--force-confold"
6767
```
6868

6969
- CentOS, RHEL, RPM-Based
@@ -72,10 +72,10 @@ To upgrade NGINX Agent to a specific **v2.x version**, follow these steps:
7272
sudo yum install -y nginx-agent-<specific-version>
7373
```
7474

75-
Example (to upgrade to version `2.41.1`):
75+
Example (to upgrade to version `2.42.0`):
7676

7777
```shell
78-
sudo yum install -y nginx-agent-2.41.1
78+
sudo yum install -y nginx-agent-2.42.0
7979
```
8080

8181
1. Verify the installed version:

0 commit comments

Comments
 (0)