@@ -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
3584071. 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
0 commit comments