comparison xml/en/linux_packages.xml @ 2962:10a66e00b46f

Linux packages: specified priority for Amazon Linux. This makes nginx.org repositories preferred when installing nginx packages. Currently, both Amazon Linux 2 and 2023 repositories have a priority of 10, so any number lower than that makes our packages preferred.
author Konstantin Pavlov <thresh@nginx.com>
date Mon, 27 Mar 2023 16:25:44 -0700
parents 23d3cabaab95
children c7bf5c9a1174
comparison
equal deleted inserted replaced
2961:d554555a9359 2962:10a66e00b46f
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="83"> 10 rev="84">
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
546 baseurl=http://nginx.org/packages/amzn2/$releasever/$basearch/ 546 baseurl=http://nginx.org/packages/amzn2/$releasever/$basearch/
547 gpgcheck=1 547 gpgcheck=1
548 enabled=1 548 enabled=1
549 gpgkey=https://nginx.org/keys/nginx_signing.key 549 gpgkey=https://nginx.org/keys/nginx_signing.key
550 module_hotfixes=true 550 module_hotfixes=true
551 priority=9
551 552
552 [nginx-mainline] 553 [nginx-mainline]
553 name=nginx mainline repo 554 name=nginx mainline repo
554 baseurl=http://nginx.org/packages/mainline/amzn2/$releasever/$basearch/ 555 baseurl=http://nginx.org/packages/mainline/amzn2/$releasever/$basearch/
555 gpgcheck=1 556 gpgcheck=1
556 enabled=0 557 enabled=0
557 gpgkey=https://nginx.org/keys/nginx_signing.key 558 gpgkey=https://nginx.org/keys/nginx_signing.key
558 module_hotfixes=true 559 module_hotfixes=true
560 priority=9
559 </programlisting> 561 </programlisting>
560 562
561 To set up the yum repository for Amazon Linux 2023, create the file named 563 To set up the yum repository for Amazon Linux 2023, create the file named
562 <path>/etc/yum.repos.d/nginx.repo</path> 564 <path>/etc/yum.repos.d/nginx.repo</path>
563 with the following contents: 565 with the following contents:
568 baseurl=http://nginx.org/packages/amzn/2023/$basearch/ 570 baseurl=http://nginx.org/packages/amzn/2023/$basearch/
569 gpgcheck=1 571 gpgcheck=1
570 enabled=1 572 enabled=1
571 gpgkey=https://nginx.org/keys/nginx_signing.key 573 gpgkey=https://nginx.org/keys/nginx_signing.key
572 module_hotfixes=true 574 module_hotfixes=true
575 priority=9
573 576
574 [nginx-mainline] 577 [nginx-mainline]
575 name=nginx mainline repo 578 name=nginx mainline repo
576 baseurl=http://nginx.org/packages/mainline/amzn/2023/$basearch/ 579 baseurl=http://nginx.org/packages/mainline/amzn/2023/$basearch/
577 gpgcheck=1 580 gpgcheck=1
578 enabled=0 581 enabled=0
579 gpgkey=https://nginx.org/keys/nginx_signing.key 582 gpgkey=https://nginx.org/keys/nginx_signing.key
580 module_hotfixes=true 583 module_hotfixes=true
584 priority=9
581 </programlisting> 585 </programlisting>
582 586
583 By default, the repository for stable nginx packages is used. 587 By default, the repository for stable nginx packages is used.
584 If you would like to use mainline nginx packages, 588 If you would like to use mainline nginx packages,
585 run the following command: 589 run the following command: