Skip to content

Commit 7a4f806

Browse files
Remove lsb_release from instructions, use code name instead
Remove comma based on PR feedback
1 parent cb6e110 commit 7a4f806

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ 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`, with a specific version (example: 2.42.0):
53+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
5454

5555
```shell
5656
sudo yum install -y nginx-agent-2.42.0
@@ -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`, with a specific version (example: 2.42.0):
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 -y nginx-agent=2.42.0~`lsb_release -cs`
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`, with a specific version (example: 2.42.0):
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 -y nginx-agent=2.42.0~`lsb_release -cs`
174-
```
177+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
175178
176179
1. Verify the installation:
177180
@@ -229,7 +232,7 @@ 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`, with a specific version (example: 2.42.0):
235+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
233236
234237
```shell
235238
sudo zypper install -y nginx-agent=2.42.0
@@ -303,7 +306,7 @@ 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`, with a specific version (example: 2.42.0):
309+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
307310
308311
```shell
309312
sudo apk add nginx-agent=2.42.0
@@ -334,7 +337,7 @@ 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`, with a specific version (example: 2.42.0):
340+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
338341
339342
```shell
340343
sudo dnf install -y nginx-agent-2.42.0
@@ -370,7 +373,7 @@ 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`, with a specific version (example: 2.42.0):
376+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
374377
375378
```shell
376379
sudo yum install -y nginx-agent-2.42.0
@@ -396,7 +399,7 @@ 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`, with a specific version (example: 2.42.0):
402+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
400403
401404
```shell
402405
sudo pkg install nginx-agent-2.42.0

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

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ 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`, with a specific version (example: 2.42.0):
76+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
7777

7878
```shell
7979
sudo yum install -y nginx-agent-2.42.0
@@ -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`, with a specific version (example: 2.42.0):
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 -y nginx-agent=2.42.0~`lsb_release -cs`
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`, with a specific version (example: 2.42.0):
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 -y nginx-agent=2.42.0~`lsb_release -cs`
191-
```
194+
sudo apt install -y nginx-agent=2.42.0~<VERSION_CODENAME>
195+
192196
193197
1. Verify the installation:
194198
@@ -265,7 +269,7 @@ 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`, with a specific version (example: 2.42.0):
272+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
269273
270274
```shell
271275
sudo zypper install -y nginx-agent=2.42.0
@@ -394,7 +398,7 @@ 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`, with a specific version (example: 2.42.0):
401+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
398402
399403
```shell
400404
sudo dnf install -y nginx-agent-2.42.0
@@ -442,7 +446,7 @@ 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`, with a specific version (example: 2.42.0):
449+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
446450
447451
```shell
448452
sudo yum install -y nginx-agent-2.42.0
@@ -496,7 +500,7 @@ 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`, with a specific version (example: 2.42.0):
503+
1. To install `nginx-agent` with a specific version (example: 2.42.0):
500504
501505
```shell
502506
sudo pkg install nginx-agent-2.42.0

0 commit comments

Comments
 (0)