Skip to content

Commit 315063d

Browse files
Merge pull request #759 from nginx/smoloney/docs-update
Add instructions for Amazon Linux 2023
2 parents ddb63d5 + 9b1dc50 commit 315063d

File tree

3 files changed

+106
-5
lines changed

3 files changed

+106
-5
lines changed

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

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Before you install NGINX Agent for the first time on your system, you need to se
2828
- [Installing NGINX Agent on Debian](#installing-nginx-agent-on-debian)
2929
- [Installing NGINX Agent on SLES](#installing-nginx-agent-on-sles)
3030
- [Installing NGINX Agent on Alpine Linux](#installing-nginx-agent-on-alpine-linux)
31-
- [Installing NGINX Agent on Amazon Linux](#installing-nginx-agent-on-amazon-linux)
31+
- [Installing NGINX Agent on Amazon Linux 2](#installing-nginx-agent-on-amazon-linux-2)
32+
- [Installing NGINX Agent on Amazon Linux 2023](#installing-nginx-agent-on-amazon-linux-2023)
3233
- [Installing NGINX Agent on FreeBSD](#installing-nginx-agent-on-freebsd)
3334

3435
### Installing NGINX Agent on RHEL, CentOS, Rocky Linux, AlmaLinux, and Oracle Linux
@@ -292,7 +293,43 @@ Before you install NGINX Agent for the first time on your system, you need to se
292293
sudo nginx-agent -v
293294
```
294295

295-
### Installing NGINX Agent on Amazon Linux
296+
### Installing NGINX Agent on Amazon Linux 2023
297+
298+
1. Install the prerequisites:
299+
300+
```shell
301+
sudo dnf install yum-utils procps-ng
302+
```
303+
304+
1. To set up the dnf repository for Amazon Linux 2023, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
305+
```
306+
[nginx-agent]
307+
name=nginx agent repo
308+
baseurl=https://packages.nginx.org/nginx-agent/amzn/2023/$basearch/
309+
gpgcheck=1
310+
enabled=1
311+
gpgkey=https://nginx.org/keys/nginx_signing.key
312+
module_hotfixes=true
313+
```
314+
315+
1. To install `nginx-agent`, run the following command:
316+
317+
```shell
318+
sudo dnf install nginx-agent
319+
```
320+
321+
1. When prompted to accept the GPG key, verify that the fingerprint matches
322+
`8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46`,
323+
`573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`,
324+
`9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3`
325+
and if so, accept it.
326+
327+
1. Verify the installation:
328+
329+
```shell
330+
sudo nginx-agent -v
331+
```
332+
### Installing NGINX Agent on Amazon Linux 2
296333

297334
1. Install the prerequisites:
298335

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

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Before you install NGINX Agent for the first time on your system, you need to se
3131
- [Installing NGINX Agent on Debian](#installing-nginx-agent-on-debian)
3232
- [Installing NGINX Agent on SLES](#installing-nginx-agent-on-sles)
3333
- [Installing NGINX Agent on Alpine Linux](#installing-nginx-agent-on-alpine-linux)
34+
- [Installing NGINX Agent on Amazon Linux 2023](#installing-nginx-agent-on-amazon-linux-2023)
3435
- [Installing NGINX Agent on Amazon Linux](#installing-nginx-agent-on-amazon-linux)
3536
- [Installing NGINX Agent on FreeBSD](#installing-nginx-agent-on-freebsd)
3637

@@ -353,7 +354,55 @@ Before you install NGINX Agent for the first time on your system, you need to se
353354
sudo nginx-agent -v
354355
```
355356

356-
### Installing NGINX Agent on Amazon Linux
357+
### Installing NGINX Agent on Amazon Linux 2023
358+
359+
1. Create the `/etc/ssl/nginx` directory:
360+
361+
```shell
362+
sudo mkdir -p /etc/ssl/nginx
363+
```
364+
365+
1. Log in to [MyF5 Customer Portal](https://account.f5.com/myf5/) and download your `nginx-repo.crt` and `nginx-repo.key` files.
366+
367+
1. Copy the `nginx-repo.crt` and `nginx-repo.key` files to the `/etc/ssl/nginx/` directory:
368+
369+
```shell
370+
sudo cp nginx-repo.crt nginx-repo.key /etc/ssl/nginx/
371+
```
372+
373+
1. Install the prerequisites:
374+
375+
```shell
376+
sudo dnf install yum-utils procps-ng ca-certificates
377+
```
378+
379+
1. To set up the dnf repository for Amazon Linux 2023, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
380+
381+
```
382+
[nginx-agent]
383+
name=nginx-agent repo
384+
baseurl=https://packages.nginx.org/nginx-agent/amzn/2023/$basearch/
385+
sslclientcert=/etc/ssl/nginx/nginx-repo.crt
386+
sslclientkey=/etc/ssl/nginx/nginx-repo.key
387+
gpgcheck=0
388+
enabled=1
389+
```
390+
391+
1. To install `nginx-agent`, run the following command:
392+
393+
```shell
394+
sudo dnf install nginx-agent
395+
```
396+
397+
1. When prompted to accept the GPG key, verify that the fingerprint matches `573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62`, and if so, accept it.
398+
399+
1. Verify the installation:
400+
401+
```shell
402+
sudo nginx-agent -v
403+
```
404+
405+
### Installing NGINX Agent on Amazon Linux 2
357406

358407
1. Create the `/etc/ssl/nginx` directory:
359408

@@ -380,7 +429,7 @@ Before you install NGINX Agent for the first time on your system, you need to se
380429
```
381430
[nginx-agent]
382431
name=nginx-agent repo
383-
baseurl=https://pkgs.nginx.com/nginx-agent/amzn2/$releasever/$basearch
432+
baseurl=https://pkgs.nginx.com/nginx-agent/amzn/2023/$releasever/$basearch
384433
sslclientcert=/etc/ssl/nginx/nginx-repo.crt
385434
sslclientkey=/etc/ssl/nginx/nginx-repo.key
386435
gpgcheck=0

site/content/installation-upgrade/uninstall.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Complete the following steps on each host where you've installed NGINX agent:
114114
sudo apk del nginx-agent
115115
```
116116

117-
### Uninstalling NGINX Agent on Amazon Linux
117+
### Uninstalling NGINX Agent on Amazon Linux 2
118118

119119
Complete the following steps on each host where you've installed NGINX agent:
120120

@@ -130,6 +130,21 @@ Complete the following steps on each host where you've installed NGINX agent:
130130
sudo yum remove nginx-agent
131131
```
132132

133+
### Uninstalling NGINX Agent on Amazon Linux 2023
134+
135+
Complete the following steps on each host where you've installed NGINX agent:
136+
137+
1. Stop NGINX agent:
138+
139+
```bash
140+
sudo systemctl stop nginx-agent
141+
```
142+
143+
2. To uninstall NGINX agent, run the following command:
144+
145+
```bash
146+
sudo dnf remove nginx-agent
147+
```
133148
### Uninstalling NGINX Agent on FreeBSD
134149

135150
Complete the following steps on each host where you've installed NGINX agent:

0 commit comments

Comments
 (0)