diff xml/en/linux_packages.xml @ 2730:5235e67595b4

Linux packages: added Amazon Linux 2.
author Konstantin Pavlov <thresh@nginx.com>
date Fri, 14 May 2021 13:39:50 +0300
parents 8b96520ca495
children 5d15140ad319
line wrap: on
line diff
--- a/xml/en/linux_packages.xml	Fri May 28 11:11:20 2021 +0100
+++ b/xml/en/linux_packages.xml	Fri May 14 13:39:50 2021 +0300
@@ -7,7 +7,7 @@
 <article name="nginx: Linux packages"
          link="/en/linux_packages.html"
          lang="en"
-         rev="58">
+         rev="59">
 
 <section name="Supported distributions and versions" id="distributions">
 
@@ -146,6 +146,24 @@
 </table>
 </para>
 
+<para>
+<link id="Amazon-Linux">Amazon Linux</link>
+
+<table note="yes">
+
+<tr>
+<td width="30%">Version</td>
+<td>Supported platforms</td>
+</tr>
+
+<tr>
+<td width="30%">2 (LTS)</td>
+<td>x86_64, aarch64/arm64</td>
+</tr>
+
+</table>
+</para>
+
 </section>
 
 
@@ -484,6 +502,54 @@
 
 </section>
 
+<section name="Amazon Linux" id="Amazon-Linux">
+
+<para>
+Install the prerequisites:
+<programlisting>
+sudo yum install yum-utils
+</programlisting>
+
+To set up the yum repository, create the file named
+<path>/etc/yum.repos.d/nginx.repo</path>
+with the following contents:
+
+<programlisting>
+[nginx-stable]
+name=nginx stable repo
+baseurl=http://nginx.org/packages/amzn2/$releasever/$basearch/
+gpgcheck=1
+enabled=1
+gpgkey=https://nginx.org/keys/nginx_signing.key
+module_hotfixes=true
+
+[nginx-mainline]
+name=nginx mainline repo
+baseurl=http://nginx.org/packages/mainline/amzn2/$releasever/$basearch/
+gpgcheck=1
+enabled=0
+gpgkey=https://nginx.org/keys/nginx_signing.key
+module_hotfixes=true
+</programlisting>
+
+By default, the repository for stable nginx packages is used.
+If you would like to use mainline nginx packages, run the following command:
+<programlisting>
+sudo yum-config-manager --enable nginx-mainline
+</programlisting>
+
+To install nginx, run the following command:
+<programlisting>
+sudo yum install nginx
+</programlisting>
+
+When prompted to accept the GPG key, verify that the fingerprint matches
+<command>573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62</command>,
+and if so, accept it.
+</para>
+
+</section>
+
 </section>
 
 
@@ -500,7 +566,7 @@
 sources for stable releases.
 To build binary packages, run <command>make</command> in
 <path>debian/</path> directory on Debian/Ubuntu, or in
-<path>rpm/SPECS/</path> on RHEL/CentOS/SLES, or in
+<path>rpm/SPECS/</path> on RHEL/CentOS/SLES/Amazon Linux, or in
 <path>alpine/</path> on Alpine.
 </para>