# HG changeset patch # User Konstantin Pavlov # Date 1679336457 25200 # Node ID 23d3cabaab95fb09ea40f113759f4eaed99ec9d7 # Parent 0f468b4e01d67cab96a44e0886dda3180104ae1a Linux packages: added Amazon Linux 2023. diff -r 0f468b4e01d6 -r 23d3cabaab95 xml/en/linux_packages.xml --- a/xml/en/linux_packages.xml Thu Mar 09 22:20:24 2023 +0000 +++ b/xml/en/linux_packages.xml Mon Mar 20 11:20:57 2023 -0700 @@ -7,7 +7,7 @@
+ rev="83">
@@ -166,6 +166,11 @@ x86_64, aarch64/arm64 + +2023 +x86_64, aarch64/arm64 + + @@ -531,7 +536,7 @@ sudo yum install yum-utils -To set up the yum repository, create the file named +To set up the yum repository for Amazon Linux 2, create the file named /etc/yum.repos.d/nginx.repo with the following contents: @@ -553,6 +558,28 @@ module_hotfixes=true +To set up the yum repository for Amazon Linux 2023, create the file named +/etc/yum.repos.d/nginx.repo +with the following contents: + + +[nginx-stable] +name=nginx stable repo +baseurl=http://nginx.org/packages/amzn/2023/$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/amzn/2023/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=https://nginx.org/keys/nginx_signing.key +module_hotfixes=true + + By default, the repository for stable nginx packages is used. If you would like to use mainline nginx packages, run the following command: diff -r 0f468b4e01d6 -r 23d3cabaab95 xml/ru/linux_packages.xml --- a/xml/ru/linux_packages.xml Thu Mar 09 22:20:24 2023 +0000 +++ b/xml/ru/linux_packages.xml Mon Mar 20 11:20:57 2023 -0700 @@ -7,7 +7,7 @@
+ rev="83">
@@ -166,6 +166,11 @@ x86_64, aarch64/arm64 + +2023 +x86_64, aarch64/arm64 + + @@ -528,7 +533,7 @@ sudo yum install yum-utils -Для подключения yum-репозитория создайте файл с именем +Для подключения yum-репозитория для Amazon Linux 2 создайте файл с именем /etc/yum.repos.d/nginx.repo со следующим содержимым: @@ -550,6 +555,28 @@ module_hotfixes=true +Для подключения yum-репозитория для Amazon Linux 2023 создайте файл с именем +/etc/yum.repos.d/nginx.repo +со следующим содержимым: + + +[nginx-stable] +name=nginx stable repo +baseurl=http://nginx.org/packages/amzn/2023/$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/amzn/2023/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=https://nginx.org/keys/nginx_signing.key +module_hotfixes=true + + По умолчанию используется репозиторий для стабильной версии nginx. Если предпочтительно использовать пакеты для основной версии nginx, выполните следующую команду: