Welcome! Log In Create A New Profile

Advanced

[PATCH] Linux packages: specified priority for Amazon Linux

Konstantin Pavlov
March 27, 2023 07:28PM
# HG changeset patch
# User Konstantin Pavlov <thresh@nginx.com>
# Date 1679959544 25200
# Mon Mar 27 16:25:44 2023 -0700
# Node ID 9741a500247ec50eaf5a4043a270fc097e0345c1
# Parent 23d3cabaab95fb09ea40f113759f4eaed99ec9d7
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.

diff -r 23d3cabaab95 -r 9741a500247e xml/en/linux_packages.xml
--- a/xml/en/linux_packages.xml Mon Mar 20 11:20:57 2023 -0700
+++ b/xml/en/linux_packages.xml Mon Mar 27 16:25:44 2023 -0700
@@ -7,7 +7,7 @@
<article name="nginx: Linux packages"
link="/en/linux_packages.html"
lang="en"
- rev="83">
+ rev="84">

<section name="Supported distributions and versions" id="distributions">

@@ -548,6 +548,7 @@ gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9

[nginx-mainline]
name=nginx mainline repo
@@ -556,6 +557,7 @@ gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9
</programlisting>

To set up the yum repository for Amazon Linux 2023, create the file named
@@ -570,6 +572,7 @@ gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9

[nginx-mainline]
name=nginx mainline repo
@@ -578,6 +581,7 @@ gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9
</programlisting>

By default, the repository for stable nginx packages is used.
diff -r 23d3cabaab95 -r 9741a500247e xml/ru/linux_packages.xml
--- a/xml/ru/linux_packages.xml Mon Mar 20 11:20:57 2023 -0700
+++ b/xml/ru/linux_packages.xml Mon Mar 27 16:25:44 2023 -0700
@@ -7,7 +7,7 @@
<article name="nginx: пакеты для Linux"
link="/ru/linux_packages.html"
lang="ru"
- rev="83">
+ rev="84">

<section name="Поддерживаемые дистрибутивы и версии" id="distributions">

@@ -545,6 +545,7 @@ gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9

[nginx-mainline]
name=nginx mainline repo
@@ -553,6 +554,7 @@ gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9
</programlisting>

Для подключения yum-репозитория для Amazon Linux 2023 создайте файл с именем
@@ -567,6 +569,7 @@ gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9

[nginx-mainline]
name=nginx mainline repo
@@ -575,6 +578,7 @@ gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
+priority=9
</programlisting>

По умолчанию используется репозиторий для стабильной версии nginx.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Linux packages: specified priority for Amazon Linux

Konstantin Pavlov 516 March 27, 2023 07:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready