comparison 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
comparison
equal deleted inserted replaced
2729:886c6507ee04 2730:5235e67595b4
5 <!DOCTYPE article SYSTEM "../../dtd/article.dtd"> 5 <!DOCTYPE article SYSTEM "../../dtd/article.dtd">
6 6
7 <article name="nginx: Linux packages" 7 <article name="nginx: Linux packages"
8 link="/en/linux_packages.html" 8 link="/en/linux_packages.html"
9 lang="en" 9 lang="en"
10 rev="58"> 10 rev="59">
11 11
12 <section name="Supported distributions and versions" id="distributions"> 12 <section name="Supported distributions and versions" id="distributions">
13 13
14 <para> 14 <para>
15 nginx packages are available for the following Linux distributions and 15 nginx packages are available for the following Linux distributions and
138 <td>x86_64, aarch64/arm64</td> 138 <td>x86_64, aarch64/arm64</td>
139 </tr> 139 </tr>
140 140
141 <tr> 141 <tr>
142 <td width="30%">3.13</td> 142 <td width="30%">3.13</td>
143 <td>x86_64, aarch64/arm64</td>
144 </tr>
145
146 </table>
147 </para>
148
149 <para>
150 <link id="Amazon-Linux">Amazon Linux</link>
151
152 <table note="yes">
153
154 <tr>
155 <td width="30%">Version</td>
156 <td>Supported platforms</td>
157 </tr>
158
159 <tr>
160 <td width="30%">2 (LTS)</td>
143 <td>x86_64, aarch64/arm64</td> 161 <td>x86_64, aarch64/arm64</td>
144 </tr> 162 </tr>
145 163
146 </table> 164 </table>
147 </para> 165 </para>
482 </programlisting> 500 </programlisting>
483 </para> 501 </para>
484 502
485 </section> 503 </section>
486 504
505 <section name="Amazon Linux" id="Amazon-Linux">
506
507 <para>
508 Install the prerequisites:
509 <programlisting>
510 sudo yum install yum-utils
511 </programlisting>
512
513 To set up the yum repository, create the file named
514 <path>/etc/yum.repos.d/nginx.repo</path>
515 with the following contents:
516
517 <programlisting>
518 [nginx-stable]
519 name=nginx stable repo
520 baseurl=http://nginx.org/packages/amzn2/$releasever/$basearch/
521 gpgcheck=1
522 enabled=1
523 gpgkey=https://nginx.org/keys/nginx_signing.key
524 module_hotfixes=true
525
526 [nginx-mainline]
527 name=nginx mainline repo
528 baseurl=http://nginx.org/packages/mainline/amzn2/$releasever/$basearch/
529 gpgcheck=1
530 enabled=0
531 gpgkey=https://nginx.org/keys/nginx_signing.key
532 module_hotfixes=true
533 </programlisting>
534
535 By default, the repository for stable nginx packages is used.
536 If you would like to use mainline nginx packages, run the following command:
537 <programlisting>
538 sudo yum-config-manager --enable nginx-mainline
539 </programlisting>
540
541 To install nginx, run the following command:
542 <programlisting>
543 sudo yum install nginx
544 </programlisting>
545
546 When prompted to accept the GPG key, verify that the fingerprint matches
547 <command>573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62</command>,
548 and if so, accept it.
549 </para>
550
551 </section>
552
487 </section> 553 </section>
488 554
489 555
490 <section name="Source Packages" id="sourcepackages"> 556 <section name="Source Packages" id="sourcepackages">
491 557
498 The <literal>default</literal> branch holds packaging sources for the current 564 The <literal>default</literal> branch holds packaging sources for the current
499 mainline version, while <literal>stable-*</literal> branches contain latest 565 mainline version, while <literal>stable-*</literal> branches contain latest
500 sources for stable releases. 566 sources for stable releases.
501 To build binary packages, run <command>make</command> in 567 To build binary packages, run <command>make</command> in
502 <path>debian/</path> directory on Debian/Ubuntu, or in 568 <path>debian/</path> directory on Debian/Ubuntu, or in
503 <path>rpm/SPECS/</path> on RHEL/CentOS/SLES, or in 569 <path>rpm/SPECS/</path> on RHEL/CentOS/SLES/Amazon Linux, or in
504 <path>alpine/</path> on Alpine. 570 <path>alpine/</path> on Alpine.
505 </para> 571 </para>
506 572
507 <para> 573 <para>
508 Packaging sources are distributed under the same 574 Packaging sources are distributed under the same