Skip to content

Commit 95472c5

Browse files
Add Amazon linux 2023 to contents in OSS and Plus, change yum to dnf
1 parent c7be3cb commit 95472c5

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

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

Lines changed: 4 additions & 3 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
@@ -300,7 +301,7 @@ Before you install NGINX Agent for the first time on your system, you need to se
300301
sudo dnf install yum-utils procps
301302
```
302303

303-
1. To set up the yum repository for Amazon Linux 2, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
304+
1. To set up the yum repository for Amazon Linux 2023, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
304305
```
305306
[nginx-agent]
306307
name=nginx agent repo
@@ -328,7 +329,7 @@ Before you install NGINX Agent for the first time on your system, you need to se
328329
```shell
329330
sudo nginx-agent -v
330331
```
331-
### Installing NGINX Agent on Amazon Linux
332+
### Installing NGINX Agent on Amazon Linux 2
332333

333334
1. Install the prerequisites:
334335

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

Lines changed: 2 additions & 1 deletion
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

@@ -375,7 +376,7 @@ Before you install NGINX Agent for the first time on your system, you need to se
375376
sudo dnf install yum-utils procps ca-certificates
376377
```
377378

378-
1. To set up the yum repository for Amazon Linux 2, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
379+
1. To set up the yum repository for Amazon Linux 2023, create the file named `/etc/yum.repos.d/nginx-agent.repo` with the following contents:
379380

380381
```
381382
[nginx-agent]

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)