RockyLinux 9にNginx 1.22をインストール（AppStream）

# はじめに

Application Stream(AppStream)を利用してRockyLinux9にNginx1.22をインストール
親記事：[Nginxの各種インストール方法とEOLまとめ](https://qiita.com/witchcraze/items/df4a0baaaad9c932ea30)

## サポート

本手法で導入した場合、[Red Hat Enterprise Linux Application Streams Life Cycle \- Red Hat Customer Portal](https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle)より、2025-11がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

## LOG

### インストール

```shell-session
# cat /etc/redhat-release
Rocky Linux release 9.2 (Blue Onyx)

# yum module list nginx
Last metadata expiration check: 0:00:02 ago on Fri Jul  7 04:58:21 2023.
AlmaLinux 9 - AppStream
Name                       Stream                     Profiles                       Summary
nginx                      1.22                       common [d]                     nginx webserver

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# yum install -y @nginx:1.22
... 略
```

### 各種確認

```shell-session
# which nginx
/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.22.1

# yum module info nginx:1.22
Last metadata expiration check: 0:00:25 ago on Fri Jul  7 05:31:41 2023.
Name             : nginx
Stream           : 1.22 [e] [a]
Version          : 9020020230510083914
Context          : 1fa3d8bb
Architecture     : x86_64
Profiles         : common [d] [i]
Default profiles : common
Repo             : appstream
Summary          : nginx webserver
Description      : nginx 1.22 webserver module
Requires         :
Artifacts        : nginx-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.src
                 : nginx-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-all-modules-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.noarch
                 : nginx-core-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-core-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-debugsource-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-filesystem-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.noarch
                 : nginx-mod-devel-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-image-filter-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-image-filter-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-perl-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-perl-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-xslt-filter-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-http-xslt-filter-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-mail-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-mail-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-stream-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64
                 : nginx-mod-stream-debuginfo-1:1.22.1-3.module+el9.2.0+14730+1fa3d8bb.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
```