OCI上でローカルユーザベースのメールサーバ構築

postfix/dovecotを使ったIMAPメールサーバをOracle Linux 9.6上でOracle Cloud上のFree Tierで構築してみた

2025/10/30時点の状況としては、以下の問題が出て常用には難しい状態で、限定された用途にしか使えない、という感じとなった。

・OCIのFree TierではIPv4/IPv6アドレスに対する逆引き(PTR)が設定できないため gmailにメールが拒否される
・OCI上の仮想マシンから、外部のIPv4アドレスのポート25に対して通信が通らない。IPv6アドレスのポート25なら通る。(OCIの仕様)

準備1: 一般的な前準備

準備1-1: 日本時間にする

日本に住んでいる場合、日本時間表記の方が使いやすいので、OSも日本時間表示に設定する。

$ sudo timedatectl set-timezone Japan
$ 

手順1-2: swap追加

EPELレポジトリを追加した場合、メモリ1GB構成の場合、swapは5GB程度ないとdnfコマンドが正常に動作しないので、swapを増量する

/var/oled パーテーションに ファイルスワップを作成

$ sudo fallocate -l 4G /var/oled/swapfile
$ ls -l /var/oled/swapfile 
-rw-r--r--. 1 root root 4294967296 Sep  9 13:35 /var/oled/swapfile
$ sudo chmod 600 /var/oled/swapfile 
$ ls -l /var/oled/swapfile 
-rw-------. 1 root root 4294967296 Sep  9 13:35 /var/oled/swapfile
$ sudo mkswap /var/oled/swapfile 
Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
no label, UUID=bdd4f7a6-1dcc-43c8-bb2d-8f42ac2faf3f
$ 

作成したファイルをスワップとして登録

$ sudo swapon /var/oled/swapfile 
$ swapon --show
NAME               TYPE SIZE   USED PRIO
/.swapfile         file 951M 161.6M   -2
/var/oled/swapfile file   4G   8.2M   -3
$ cat /proc/swaps 
Filename                                Type            Size            Used            Priority
/.swapfile                              file            973820          165524          -2
/var/oled/swapfile                      file            4194300         8412            -3
$ 

/etc/fstab にスワップファイルの記述「/var/oled/swapfile none swap sw 0 0」を追加

$ sudo vi /etc/fstab
$ cat /etc/fstab 
#
# /etc/fstab
# Created by anaconda on Thu Jun 12 01:18:32 2025
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/ocivolume-root /                       xfs     defaults        0 0
UUID=dd88872e-0527-4193-8282-b8281f1ae6fd /boot                   xfs     defaults        0 0
UUID=AE3C-806E          /boot/efi               vfat    defaults,uid=0,gid=0,umask=077,shortname=winnt 0 2
/dev/mapper/ocivolume-oled /var/oled               xfs     defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,nodev,nosuid,noexec      0 0
######################################
## ORACLE CLOUD INFRASTRUCTURE CUSTOMERS
##
## If you are adding an iSCSI remote block volume to this file you MUST
## include the '_netdev' mount option or your instance will become
## unavailable after the next reboot.
## SCSI device names are not stable across reboots; please use the device UUID instead of /dev path.
##
## Example:
## UUID="94c5aade-8bb1-4d55-ad0c-388bb8aa716a"   /data1    xfs       defaults,noatime,_netdev      0      2
##
## More information:
## https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/connectingtoavolume.htm
/.swapfile      none    swap    sw      0       0
/var/oled/swapfile      none    swap    sw      0       0
$

準備2-3: パッケージを最新へアップデート

現時点での最新へアップデートする

$ sudo dnf update -y
<略>
$ sudo reboot

手順1-4: 日本語Locale対応

ja_JP.UTF-8など日本語Localeで設定した際、「Failed to set locale, defaulting to C.UTF-8」というメッセージが出力される場合があります。

その場合は日本語Localeを追加インストールします。

$ sudo dnf install langpacks-ja
<略>
$

手順1-5: kdump無効化

どうせ使わないのでkdumpを無効化

$ sudo systemctl disable kdump.service
Removed '/etc/systemd/system/multi-user.target.wants/kdump.service'.
$

手順2: EPELレポジトリの追加

EPELレポジトリを登録

$ sudo dnf config-manager --set-enabled ol10_u0_developer_EPEL
$  dnf repolist --all
repo id                                                                       repo name                                                                                                       status
ol9_MODRHCK                                                                   Latest RHCK with fixes from Oracle for Oracle Linux 9 (x86_64)                                                  disabled
ol9_RDMA                                                                      Oracle Linux 9 (x86_64) RDMA                                                                                    disabled
ol9_UEKR7                                                                     Oracle Linux 9 UEK Release 7 (x86_64)                                                                           disabled
ol9_UEKR8                                                                     Oracle Linux 9 UEK Release 8 (x86_64)                                                                           enabled
ol9_addons                                                                    Oracle Linux 9 Addons (x86_64)                                                                                  enabled
ol9_appstream                                                                 Oracle Linux 9 Application Stream Packages (x86_64)                                                             enabled
ol9_baseos_latest                                                             Oracle Linux 9 BaseOS Latest (x86_64)                                                                           enabled
ol9_codeready_builder                                                         Oracle Linux 9 CodeReady Builder (x86_64) - (Unsupported)                                                       disabled
ol9_developer                                                                 Oracle Linux 9 Development Packages (x86_64)                                                                    disabled
ol9_developer_EPEL                                                            Oracle Linux 9 EPEL Packages for Development (x86_64)                                                           enabled
ol9_developer_UEKR7                                                           Developer Preview of UEK Release 7 (x86_64)                                                                     disabled
ol9_developer_kvm_utils                                                       Oracle Linux 9 KVM Utilities for Development and test (x86_64)                                                  disabled
ol9_distro_builder                                                            Oracle Linux 9 Distro Builder (x86_64) - (Unsupported)                                                          disabled
ol9_ksplice                                                                   Ksplice for Oracle Linux 9 (x86_64)                                                                             enabled
ol9_kvm_utils                                                                 Oracle Linux 9 KVM Utilities (x86_64)                                                                           disabled
ol9_oci_included                                                              Oracle Linux 9 OCI Included Packages (x86_64)                                                                   enabled
ol9_u0_baseos_base                                                            Oracle Linux 9 BaseOS GA (x86_64)                                                                               disabled
ol9_u1_baseos_base                                                            Oracle Linux 9.1 BaseOS (x86_64)                                                                                disabled
ol9_u2_baseos_base                                                            Oracle Linux 9.2 BaseOS (x86_64)                                                                                disabled
ol9_u3_baseos_base                                                            Oracle Linux 9.3 BaseOS (x86_64)                                                                                disabled
ol9_u3_security_validation                                                    Oracle Linux 9 Update 3 (x86_64) Security Validations                                                           disabled
ol9_u4_baseos_base                                                            Oracle Linux 9.4 BaseOS (x86_64)                                                                                disabled
ol9_u5_baseos_base                                                            Oracle Linux 9.5 BaseOS (x86_64)                                                                                disabled
ol9_u6_baseos_base                                                            Oracle Linux 9.6 BaseOS (x86_64)                                                                                disabled
ol9_x86_64_userspace_ksplice                                                  Ksplice aware userspace packages for Oracle Linux 9 (x86_64)                                                    disabled
$

手順3: インターネット公開用設定

手順3-1: fail2ban導入

公開サーバは各種のアタックにさらされます。管理用sshポートにもやってきます。

多少なりとも軽減するためにEPELレポジトリ収録のfail2banを使用します。

$ sudo dnf install fail2ban -y
<略>
$

カスタム設定は/etc/fail2ban/jail.local に対して行います。

$ sudo vi /etc/fail2ban/jail.local 
$ cat /etc/fail2ban/jail.local 
[DEFAULT]
# 86400秒=24時間以内に5回不審なアクセスがあったら24時間BAN
bantime  = 86400
findtime  = 86400
maxretry = 5
# 259200秒=3日以内に5回不審なアクセスがあったら3日間BAN
#bantime  = 259200
#findtime  = 259200
#maxretry = 5
# 除外IP
ignoreip = 127.0.0.1 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
[sshd]
enabled = true
banaction = firewallcmd-ipset
$ 

上記設定では24時間BANにしていますが、まぁ、3日BANでもかまわないとは思います。(本当に間違えた場合に困るのでほどほどにしておくとよい)

fail2banをOS起動時に実行する設定と、今すぐfail2banを起動するコマンドを実行します。

$ sudo systemctl enable --now fail2ban
Created symlink '/etc/systemd/system/multi-user.target.wants/fail2ban.service' → '/usr/lib/systemd/system/fail2ban.service'.
$

以降、アタックがあると /var/log/fail2ban.log にログが出ます。

手順3-2: メールサーバ用ポート公開設定

初期設定では dhcpv6-client と ssh が許可されています。

$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: dhcpv6-client ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
$

とりあえずは smtp port 25, smtp-submission 587, imap 143 を開けます

[opc@ocimail ~]$ sudo firewall-cmd --permanent --add-service=smtp
success
[opc@ocimail ~]$ sudo firewall-cmd --permanent --add-service=smtp-submission
success
[opc@ocimail ~]$ sudo firewall-cmd --permanent --add-service=imap
success
[opc@ocimail ~]$ sudo firewall-cmd --reload
success
[opc@ocimail ~]$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: dhcpv6-client imap smtp smtp-submission ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
[opc@ocimail ~]$ 

手順3-3: SSL更新用ポート

後述するのだが、SSLはLet’s Encryptを使う。

その際に、http ポート80と、https ポート 443が必要となるため、設定する

[opc@ocimail ~]$ sudo firewall-cmd --permanent --add-service=http
success
[opc@ocimail ~]$ sudo firewall-cmd --permanent --add-service=https
success
[opc@ocimail ~]$ sudo firewall-cmd --reload
success
[opc@ocimail ~]$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: dhcpv6-client http https imap smtp smtp-submission ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
[opc@ocimail ~]$ 

手順4: ソフトウェアインストール

postfixとdovecotをインストールします。

[opc@ocimail ~]$ sudo dnf install postfix dovecot -y
Last metadata expiration check: 2:15:42 ago on Wed 29 Oct 2025 03:42:39 AM GMT.
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                     Architecture                         Version                                                           Repository                                   Size
======================================================================================================================================================================================================
Installing:
 dovecot                                     x86_64                               1:2.3.16-15.el9                                                   ol9_appstream                               5.2 M
 postfix                                     x86_64                               2:3.5.25-1.el9                                                    ol9_appstream                               1.7 M
Installing dependencies:
 clucene-core                                x86_64                               2.3.3.4-42.20130812.e8e3d20git.el9                                ol9_appstream                               594 k
 libexttextcat                               x86_64                               3.4.5-11.el9                                                      ol9_appstream                               382 k

Transaction Summary
======================================================================================================================================================================================================
Install  4 Packages

Total download size: 7.8 M
Installed size: 24 M
Downloading Packages:
(1/4): libexttextcat-3.4.5-11.el9.x86_64.rpm                                                                                                                          1.9 MB/s | 382 kB     00:00    
(2/4): clucene-core-2.3.3.4-42.20130812.e8e3d20git.el9.x86_64.rpm                                                                                                     1.8 MB/s | 594 kB     00:00    
(3/4): dovecot-2.3.16-15.el9.x86_64.rpm                                                                                                                                12 MB/s | 5.2 MB     00:00    
(4/4): postfix-3.5.25-1.el9.x86_64.rpm                                                                                                                                6.0 MB/s | 1.7 MB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                  16 MB/s | 7.8 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                              1/1 
  Installing       : libexttextcat-3.4.5-11.el9.x86_64                                                                                                                                            1/4 
  Installing       : clucene-core-2.3.3.4-42.20130812.e8e3d20git.el9.x86_64                                                                                                                       2/4 
  Running scriptlet: dovecot-1:2.3.16-15.el9.x86_64                                                                                                                                               3/4 
  Installing       : dovecot-1:2.3.16-15.el9.x86_64                                                                                                                                               3/4 
  Running scriptlet: dovecot-1:2.3.16-15.el9.x86_64                                                                                                                                               3/4 
  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                                                                                                                                                4/4 
  Installing       : postfix-2:3.5.25-1.el9.x86_64                                                                                                                                                4/4 
  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                                                                                                                                                4/4 
  Running scriptlet: dovecot-1:2.3.16-15.el9.x86_64                                                                                                                                               4/4 
  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                                                                                                                                                4/4 
  Verifying        : clucene-core-2.3.3.4-42.20130812.e8e3d20git.el9.x86_64                                                                                                                       1/4 
  Verifying        : dovecot-1:2.3.16-15.el9.x86_64                                                                                                                                               2/4 
  Verifying        : libexttextcat-3.4.5-11.el9.x86_64                                                                                                                                            3/4 
  Verifying        : postfix-2:3.5.25-1.el9.x86_64                                                                                                                                                4/4 

Installed:
  clucene-core-2.3.3.4-42.20130812.e8e3d20git.el9.x86_64            dovecot-1:2.3.16-15.el9.x86_64            libexttextcat-3.4.5-11.el9.x86_64            postfix-2:3.5.25-1.el9.x86_64           

Complete!
[opc@ocimail ~]$ 

手順5: SSL証明書関連

手順5-1: dhパラメータファイルの作成

diffie-hellman パラメータファイル を /etc/dovecot/conf.d/10-ssl.conf にあるパス /etc/dovecot/dh.pem に作成。なお、30分以上かかる。

[opc@ocimail ~]$ sudo openssl dhparam -out /etc/dovecot/dh.pem 4096
Generating DH parameters, 4096 bit long safe prime
..............................................................................................................+......................................+................................................
<略>

手順5-2: dehydratedによるLet’s Encrypt導入

Let’s EncryptによるSSL証明書導入はcertbotを使うのが一般的ではあるのだが、python環境とあわせてパッケージサイズが大きいので、コンパクトでEPELにも収録されているdehydratedを使用する。

[opc@ocimail ~]$ sudo dnf install dehydrated -y
Last metadata expiration check: 3:29:19 ago on Wed 29 Oct 2025 03:42:39 AM GMT.
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                       Architecture                              Version                                          Repository                                             Size
======================================================================================================================================================================================================
Installing:
 dehydrated                                    noarch                                    0.7.1-6.el9                                      ol9_developer_EPEL                                    154 k
Installing dependencies:
 s-nail                                        x86_64                                    14.9.22-6.el9                                    ol9_appstream                                         626 k

Transaction Summary
======================================================================================================================================================================================================
Install  2 Packages

Total download size: 780 k
Installed size: 1.4 M
<略>
Installed:
  dehydrated-0.7.1-6.el9.noarch                                                                      s-nail-14.9.22-6.el9.x86_64                                                                     

Complete!
[opc@ocimail ~]$

dehydratedによるSSL証明書取得処理にはhttp port80アクセスと /var/www/dehydrated が使用されるためhttpdのインストールとディレクトリを作成します。

[opc@ocimail ~]$ sudo dnf install httpd -y
Last metadata expiration check: 3:31:07 ago on Wed 29 Oct 2025 03:42:39 AM GMT.
Dependencies resolved.
======================================================================================================================================================================================================
 Package                                           Architecture                          Version                                               Repository                                        Size
======================================================================================================================================================================================================
Installing:
 httpd                                             x86_64                                2.4.62-4.0.1.el9_6.4                                  ol9_appstream                                     64 k
Installing dependencies:
 apr                                               x86_64                                1.7.0-12.el9_3                                        ol9_appstream                                    131 k
 apr-util                                          x86_64                                1.6.1-23.el9                                          ol9_appstream                                     99 k
 apr-util-bdb                                      x86_64                                1.6.1-23.el9                                          ol9_appstream                                     12 k
 httpd-core                                        x86_64                                2.4.62-4.0.1.el9_6.4                                  ol9_appstream                                    1.8 M
 httpd-filesystem                                  noarch                                2.4.62-4.0.1.el9_6.4                                  ol9_appstream                                     11 k
 httpd-tools                                       x86_64                                2.4.62-4.0.1.el9_6.4                                  ol9_appstream                                     93 k
 oracle-logos-httpd                                noarch                                90.4-1.0.1.el9                                        ol9_baseos_latest                                 37 k
Installing weak dependencies:
 apr-util-openssl                                  x86_64                                1.6.1-23.el9                                          ol9_appstream                                     14 k
 mod_http2                                         x86_64                                2.0.26-4.el9_6.1                                      ol9_appstream                                    171 k
 mod_lua                                           x86_64                                2.4.62-4.0.1.el9_6.4                                  ol9_appstream                                     58 k

Transaction Summary
======================================================================================================================================================================================================
Install  11 Packages

Total download size: 2.5 M
Installed size: 6.1 M
Downloading Packages:
<略>
Installed:
  apr-1.7.0-12.el9_3.x86_64                  apr-util-1.6.1-23.el9.x86_64                    apr-util-bdb-1.6.1-23.el9.x86_64                      apr-util-openssl-1.6.1-23.el9.x86_64            
  httpd-2.4.62-4.0.1.el9_6.4.x86_64          httpd-core-2.4.62-4.0.1.el9_6.4.x86_64          httpd-filesystem-2.4.62-4.0.1.el9_6.4.noarch          httpd-tools-2.4.62-4.0.1.el9_6.4.x86_64         
  mod_http2-2.0.26-4.el9_6.1.x86_64          mod_lua-2.4.62-4.0.1.el9_6.4.x86_64             oracle-logos-httpd-90.4-1.0.1.el9.noarch             

Complete!
[opc@ocimail ~]$ sudo mkdir /var/www/dehydrated
[opc@ocimail ~]$ 

http://~/.well-known/acme-challenge でアクセスした時に上記ディレクトリが開くようApacheの設定を /etc/httpd/conf.d/dehydrated.conf として作成します。(sudo vi /etc/httpd/conf.d/dehydrated.conf )

[opc@ocimail ~]$ sudo vi /etc/httpd/conf.d/dehydrated.conf 
[opc@ocimail ~]$ cat /etc/httpd/conf.d/dehydrated.conf 
Alias /.well-known/acme-challenge /var/www/dehydrated
<Directory /var/www/dehydrated/>
</Directory>
[opc@ocimail ~]$ 

httpdを起動します

[opc@ocimail ~]$ sudo systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[opc@ocimail ~]$ 

SSL証明書を発行するホスト名を /etc/dehydrated/domains.txt に記載する。(sudo vi /etc/dehydrated/domains.txt)

$ sudo vi /etc/dehydrated/domains.txt
$ sudo cat /etc/dehydrated/domains.txt
ホスト1名.ドメイン名 ホスト2名.ドメイン名
$

登録操作を開始します。

[opc@ocimail ~]$ sudo dehydrated --register
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh

To use dehydrated with this certificate authority you have to agree to their terms of service which you can find here: https://letsencrypt.org/documents/LE-SA-v1.5-February-24-2025.pdf

To accept these terms of service run "/bin/dehydrated --register --accept-terms".
[opc@ocimail ~]$ sudo dehydrated --register --accept-terms
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh
+ Generating account key...
+ Registering account key with ACME server...
+ Fetching account URL...
+ Done!
[opc@ocimail ~]$ 

初回のSSL証明書発行処理を実行します。

[opc@ocimail ~]$ sudo dehydrated --cron
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh
Processing ocimail.websa.jp
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
 + Handling authorization for ホスト名
 + 1 pending challenge(s)
 + Deploying challenge tokens...
 + Responding to challenge for ocimail.websa.jp authorization...
 + Challenge is valid!
 + Cleaning challenge tokens...
 + Requesting certificate...
Warning: Will read cert request from stdin since no -in option is given
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Done!
 + Running automatic cleanup
Moving unused file to archive directory: ホスト名/cert-1761722366.csr
Moving unused file to archive directory: ホスト名/cert-1761722366.pem
Moving unused file to archive directory: ホスト名/privkey-1761722366.pem
[opc@ocimail ~]$ 

これで/etc/dehydrated/certs/ホスト名/ にSSL証明書が作成される

[opc@ocimail ~]$ sudo ls -l /etc/dehydrated/certs/ホスト名/
total 20
-rw-------. 1 root root 1655 Oct 29 07:26 cert-1761722787.csr
-rw-------. 1 root root 2134 Oct 29 07:26 cert-1761722787.pem
lrwxrwxrwx. 1 root root   19 Oct 29 07:26 cert.csr -> cert-1761722787.csr
lrwxrwxrwx. 1 root root   19 Oct 29 07:26 cert.pem -> cert-1761722787.pem
-rw-------. 1 root root 1802 Oct 29 07:26 chain-1761722787.pem
lrwxrwxrwx. 1 root root   20 Oct 29 07:26 chain.pem -> chain-1761722787.pem
-rw-------. 1 root root 3936 Oct 29 07:26 fullchain-1761722787.pem
lrwxrwxrwx. 1 root root   24 Oct 29 07:26 fullchain.pem -> fullchain-1761722787.pem
-rw-------. 1 root root 3272 Oct 29 07:26 privkey-1761722787.pem
lrwxrwxrwx. 1 root root   22 Oct 29 07:26 privkey.pem -> privkey-1761722787.pem
[opc@ocimail ~]$ 

dovecot設定

dovecot ssl設定

/etc/dovecot/conf.d/10-ssl.conf にて

「ssl = required」を「ssl = yes」に変更

# SSL/TLS support: yes, no, required. &lt;doc/wiki/SSL.txt>
# disable plain pop3 and imap, allowed are only pop3+TLS, pop3s, imap+TLS and imaps
# plain imap and pop3 are still allowed for local connections
ssl = yes

ssl_certとssl_keyをdehydratedが出力したファイルに置き換え

# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
# dropping root privileges, so keep the key file unreadable by anyone but
# root. Included doc/mkcert.sh can be used to easily generate self-signed
# certificate, just make sure to update the domains in dovecot-openssl.cnf
ssl_cert = &lt;/etc/dehydrated/certs/ホスト名/fullchain.pem
ssl_key = &lt;/etc/dehydrated/certs/ホスト名/privkey.pem

dhパラメータのコメントを取る

# SSL DH parameters
# Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096`
# Or migrate from old ssl-parameters.dat file with the command dovecot
# gives on startup when ssl_dh is unset.
ssl_dh = &lt;/etc/dovecot/dh.pem

dovecotのメイン設定ファイル

/etc/dovecot/dovecot.conf に以下の変更

標準だと「imap pop3 lmtp submission」となっているものから、imapとsubmissionとする

# Protocols we want to be serving.
#protocols = imap pop3 lmtp submission
protocols = imap submission

dovecotのメール保存に関するファイル

/etc/dovecot/conf.d/10-mail.conf に以下の変更

maildir形式で各ユーザのホームディレクトリに保存する設定

#   mail_location = maildir:~/Maildir
#   mail_location = mbox:~/mail:INBOX=/var/mail/%u
#   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
# &lt;doc/wiki/MailLocation.txt>
#
mail_location = maildir:~/Maildir

quotaを有効化するため、mail_plugins に「$mail_plugins quota」を追加

# Space separated list of plugins to load for all services. Plugins specific to
# IMAP, LDA, etc. are added to this list in their own .conf files.
mail_plugins = $mail_plugins quota

mailboxのindexを有効にする設定「mailbox_list_index = yes」を入れる

##
## Mailbox handling optimizations
##

# Mailbox list indexes can be used to optimize IMAP STATUS commands. They are
# also required for IMAP NOTIFY extension to be enabled.
mailbox_list_index = yes

IMAPログイン時のパスワード取り扱い設定

IMAPログイン時のパスワードを暗号化して送信する、というのが現代の設定となる。

古い仕様のメールクラインとがいたとすると、平文パスワードを許可する設定を /etc/dovecot/conf.d/10-auth.conf に追加する必要がある。

その場合は下記を「disable_plaintext_auth = no」に変更する

# Disable LOGIN command and all other plaintext authentications unless
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
# matches the local IP (ie. you're connecting from the same computer), the
# connection is considered secure and plaintext authentication is allowed.
# See also ssl=required setting.
#disable_plaintext_auth = yes

また、下記を「auth_mechanism = plain login」に変更する

# Space separated list of wanted authentication mechanisms:
#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi otp
#   gss-spnego
# NOTE: See also disable_plaintext_auth setting.
auth_mechanisms = plain

dovecotのSMTP-auth動作時の設定

/etc/dovecot/conf.d/10-master.conf でコメントアウトされている smtp-authに関する設定を少し修正して設定する

  # Postfix smtp-auth
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
    user = postfix
    group = postfix
  }

dovecotのIMAP設定

/etc/dovecot/conf.d/20-imap.conf にて mail_plugin として「imap_quota」を追加

protocol imap {
  # Space separated list of plugins to load (default is global mail_plugins).
  mail_plugins = $mail_plugins imap_quota

  # Maximum number of IMAP connections allowed for a user from each IP address.
  # NOTE: The username is compared case-sensitively.
  #mail_max_userip_connections = 10
}

dovecotのメールボックス取り扱い設定

/etc/dovecot/conf.d/15-mailboxes.conf を修正することで、メールソフトによってフォルダ名に微妙な違いがあるのをある程度吸収できる。

##
## Mailbox definitions
##

# Each mailbox is specified in a separate mailbox section. The section name
# specifies the mailbox name. If it has spaces, you can put the name
# "in quotes". These sections can contain the following mailbox settings:
#
# auto:
#   Indicates whether the mailbox with this name is automatically created
#   implicitly when it is first accessed. The user can also be automatically
#   subscribed to the mailbox after creation. The following values are
#   defined for this setting:
# 
#     no        - Never created automatically.
#     create    - Automatically created, but no automatic subscription.
#     subscribe - Automatically created and subscribed.
#  
# special_use:
#   A space-separated list of SPECIAL-USE flags (RFC 6154) to use for the
#   mailbox. There are no validity checks, so you could specify anything
#   you want in here, but it's not a good idea to use flags other than the
#   standard ones specified in the RFC:
#
#     \All       - This (virtual) mailbox presents all messages in the
#                  user's message store.
#     \Archive   - This mailbox is used to archive messages.
#     \Drafts    - This mailbox is used to hold draft messages.
#     \Flagged   - This (virtual) mailbox presents all messages in the
#                  user's message store marked with the IMAP \Flagged flag.
#     \Important - This (virtual) mailbox presents all messages in the
#                  user's message store deemed important to user.
#     \Junk      - This mailbox is where messages deemed to be junk mail
#                  are held.
#     \Sent      - This mailbox is used to hold copies of messages that
#                  have been sent.
#     \Trash     - This mailbox is used to hold messages that have been
#                  deleted.
#
# comment:
#   Defines a default comment or note associated with the mailbox. This
#   value is accessible through the IMAP METADATA mailbox entries
#   "/shared/comment" and "/private/comment". Users with sufficient
#   privileges can override the default value for entries with a custom
#   value.

# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
namespace inbox {
  # These mailboxes are widely used and could perhaps be created automatically:
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox "下書き" {
    special_use = \Drafts
  }
  mailbox INBOX.Drafts {
    special_use = \Drafts
  }

  mailbox Junk {
    special_use = \Junk
  }
  mailbox "迷惑メール" {
    special_use = \Junk
  }
  mailbox "Junk Email" {
    special_use = \Junk
  }
  mailbox "INBOX.Junk Email" {
    special_use = \Junk
  }

  mailbox Trash {
    special_use = \Trash
  }
  mailbox "削除済みアイテム" {
    special_use = \Trash
  }
  mailbox "Deleted Items" {
    special_use = \Trash
  }
  mailbox "INBOX.Deleted Items" {
    special_use = \Trash
  }

  # For \Sent mailboxes there are two widely used names. We'll mark both of
  # them as \Sent. User typically deletes one of them if duplicates are created.
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox "送信済みアイテム" {
    special_use = \Sent
  }
  mailbox "Sent Items" {
    special_use = \Sent
  }
  mailbox "INBOX.Sent Items" {
    special_use = \Sent
  }

  # If you have a virtual "All messages" mailbox:
  #mailbox virtual/All {
  #  special_use = \All
  #  comment = All my messages
  #}

  # If you have a virtual "Flagged" mailbox:
  #mailbox virtual/Flagged {
  #  special_use = \Flagged
  #  comment = All my flagged messages
  #}

  # If you have a virtual "Important" mailbox:
  #mailbox virtual/Important {
  #  special_use = \Important
  #  comment = All my important messages
  #}
}

dovecotのquota設定

既存の /etc/dovecot/conf.d/90-quota.conf の最後に下記を追加する

これは100MBで制限する例

mailbox_list_index = yes

# Avoid spending excessive time waiting for the quota calculation to finish
# when mails' vsizes aren't already cached. If this many mails are opened,
# finish the quota calculation on background in indexer-worker process. Mail
# deliveries will be assumed to succeed, and explicit quota lookups will
# return internal error. (v2.2.28+)
protocol !indexer-worker {
  mail_vsize_bg_after_count = 100
}

plugin {
  quota = count:User quota
  quota_rule = *:storage=100M
  #quota_rule2 = Trash:storage=+100M

  # This is required - it uses "virtual sizes" rather than "physical sizes"
  # for quota counting:
  quota_vsizes = yes
}

dovecotのsmtp submission設定

/etc/dovecot/conf.d/20-submission.conf にて設定する

dovecot自体ではメール配送を行わないので、postfix側に引き渡すのだが、同じホスト上にあったとしてもlocalhost指定ではなく、外部から見えるホスト名で指定する。

# Relay server configuration:
#
# The Dovecot SMTP submission service directly proxies the mail transaction
# to the SMTP relay configured here.

# Host name for the relay server (required)
submission_relay_host = ホスト名.ドメン名

postfix側設定

postfix側は /etc/postfix/main.cf へ設定を行う

Oracle Cloud上だとホスト名が内部のみの ホスト名.subnet<数字>.vcn<数字>.oraclevcn.comといったものとなっているので、DNS上のホスト名をmyhostnameで設定する

# INTERNET HOST AND DOMAIN NAMES
# 
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
myhostname = ホスト名.ドメイン名

続いてmydomain も 外部で認識させたいドメイン名を入れる

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld
mydomain = ドメイン名

外部に送信するメールの@以降の部分はドメイン名としたいので「myorigin = $mydomain」の方を有効にします。

# SENDING MAIL
# 
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites.  If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
myorigin = $mydomain

外部からpostfixにアクセスする必要があるので「inet_interfaces = all」を有効にします

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.  By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#inet_interfaces = localhost

# Enable IPv4, and IPv6 if supported
inet_protocols = all

自サーバで受信するメールドメインの設定は2番目のドメイン宛ても受け取るやつにします

# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#       mail.$mydomain, www.$mydomain, ftp.$mydomain

ローカルユーザとしてメールを受け取りたいので、local_recipient_mapsを明示的に有効にします。

# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
# 
local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

postfixでメールを送信できるようにする設定

メール送信を許可するネットワークを mynetworks で行う

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

また、以下を追加

# With Postfix version before 2.10, use smtpd_recipient_restrictions
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

postfixのssl証明書設定

/etc/postfix/main.cf の最後の方にSSL関連の設定がある

# The full pathname of a file with the Postfix SMTP server RSA certificate
# in PEM format. Intermediate certificates should be included in general,
# the server certificate first, then the issuing CA(s) (bottom-up order).
#
smtpd_tls_cert_file = /etc/dehydrated/certs/ocimail.websa.jp/fullchain.pem
# The full pathname of a file with the Postfix SMTP server RSA private key
# in PEM format. The private key must be accessible without a pass-phrase,
# i.e. it must not be encrypted.
#
smtpd_tls_key_file = /etc/dehydrated/certs/ocimail.websa.jp/privkey.pem

postfix側からdovecotを起動する設定

/etc/postfix/master.cf の最終行に以下を追加

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}

postfixからSASLを使ってdovecot連携する手法は使わない

今回はsmtp submissionはdovecot側で行うので、SASLを使ってdovecotと連携するための下記設定は行わない。

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
# dovecot sasl configuration
smtpd_sasl_type = dovecot
# Can be an absolute path, or relative to $queue_directory
# Debian/Ubuntu users: Postfix is setup by default to run chrooted, so it is best to leave it as-is below
smtpd_sasl_path = private/auth
# and the common settings to enable SASL:
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous 

トラブル対応

gmail宛てがgmail側で受け取り拒否

gmailに送ったところ、メールがなかなか届かないので/var/log/maillogを確認

Oct 30 10:15:28 ocimail postfix/smtp[5898]: AA57A309E87E: to=&lt;アドレス@gmail.com>, relay=gmail-smtp-in.l.google.com[2404:6800:4008:c15::1b]:25, delay=2.6, delays=0.29/0.19/1.2/0.9, dsn=5.7.1, status=bounced (host gmail-
smtp-in.l.google.com[2404:6800:4008:c15::1b] said: 550-5.7.1 [2603:c023:f:9000:0:7a41:2e84:f27f] Gmail has detected that this 550-5.7.1 message does not meet IPv6 sending guidelines regarding PTR records 550-5.7.1 and auth
entication. For more information, go to 550 5.7.1  https://support.google.com/mail/?p=IPv6AuthError 41be03b00d2f7-b71f4ba78c7si7488417a12.1056 - gsmtp (in reply to end of DATA command))

「Gmail has detected that this 550-5.7.1 message does not meet IPv6 sending guidelines regarding PTR records 550-5.7.1 and authentication. For more information, go to 550 5.7.1 https://support.google.com/mail/?p=IPv6AuthError」という形で拒否されていた。

リンク先はGoogleの「メール送信者のガイドライン」の最後のあたりで下記の様に書かれている

IPv6 認証エラーを修正する
送信元サーバーの PTR レコードで IPv6 が使用されていない場合、IPv6 認証エラーが返される場合があります。メールサービス プロバイダを利用している場合は、プロバイダが IPv6 の PTR レコードを使用していることを確認してください。

IPv6 認証エラーの例を次に示します。
550-5.7.1: Message does not meet IPv6 sending guidelines regarding PTR records and authentication.(メールが PTR レコードと認証に関する IPv6 の送信ガイドラインに準拠していません。)

あと、最初の方に書かれているIPアドレスに対する要件も関係している

インフラストラクチャ設定の要件とガイドライン
IP アドレス
重要: 送信元 IP アドレスは、ポインタ(PTR)レコードで指定されたホスト名の IP アドレスと一致している必要があります。

送信元 SMTP サーバーのパブリック IP アドレスには、対応するホスト名を参照する PTR レコードが必要です。これは、リバース DNS ルックアップと呼ばれます。このホスト名には、送信元サーバーと同じパブリック IP アドレスを参照する A レコード(IPv4 の場合)または AAAA レコード(IPv6 の場合)も必要です。これは、フォワード DNS ルックアップと呼ばれます。
送信元サーバーの IP アドレスとドメインを対応付ける有効なリバース DNS レコードを設定します。Google 管理者ツールボックスの Dig ツールを使用して PTR レコードを確認します。
重要: 送信元 IP アドレスは、ポインタ(PTR)レコードで指定されたホスト名の IP アドレスと一致している必要があります。

つまり、IPv6アドレスのPTRレコードに対してちゃんとホスト名を設定する必要があるようだ。

じゃあ、Oracle Cloudの場合、それを設定できるのか?を確認

Oracle Cloud Infrastructureドキュメント:逆引きDNS (PTR)

クラウドIPアドレスに対してPTRレコードを確立するようにリクエストできます:
1. リクエストをオープンする前の完全修飾ドメイン名をIPに示したA (IPv4)またはAAAA (IPv6)フォワード・レコードを作成します。レコードは、Oracle Cloud Infrastructure DNSサービスまたはサードパーティDNSプロバイダを使用して作成できます。
2. サービス・リクエストをオープンして、次の情報を含めます:
a. PTRに必要なIPアドレスおよび完全修飾ドメイン名(FQDN)。
b. ステップ1で作成したフォワード・レコードのFQDN。

サービス・リクエストの受信後、フォワード(AまたはAAAA)レコード情報は、正常に解決できることが検証され、OracleによってPTRレコードが作成されます。

Web UIでは設定できないのでサービスリクエストから申請する必要がある、とのこと。

サービスリクエストのリンクを飛ぶと「サポート・リクエスト」になったが、読むと・・・

サポート・リクエストは有料アカウントでのみ利用可能です。Always Freeリソースのみを使用する顧客およびFree Tierアカウントを使用する顧客はOracle Supportの対象ではありません。サポートが必要な場合は、サポート・チャットおよびCloud Customer Connectを使用します。

とある、サポートチャットで、対応してもらえるんだろうか?

OCI CLIコマンドのdnsオプションで操作できないのか?

パッケージ oci-utils ではなく、パッケージ python39-oci-cli の方だった

[root@ocimail ~]# dnf install python39-oci-cli
Last metadata expiration check: 2:19:30 ago on Thu 30 Oct 2025 08:47:09 AM JST.
Dependencies resolved.
==============================================================================================================================================================================================================================
 Package                                                        Architecture                               Version                                               Repository                                              Size
==============================================================================================================================================================================================================================
Installing:
 python39-oci-cli                                               noarch                                     3.69.0-1.el9                                          ol9_oci_included                                        46 M
Upgrading:
 python39-oci-sdk                                               x86_64                                     2.162.0-1.el9                                         ol9_oci_included                                        91 M
Installing dependencies:
 python3-arrow                                                  noarch                                     1.2.3-5.el9                                           ol9_developer_EPEL                                     166 k
 python3-importlib-metadata                                     noarch                                     4.12.0-2.el9                                          ol9_oci_included                                        75 k
 python3-jmespath                                               noarch                                     0.10.0-4.el9                                          ol9_oci_included                                        78 k
 python3-prompt-toolkit                                         noarch                                     3.0.38-4.el9                                          ol9_oci_included                                       1.0 M
 python3-terminaltables                                         noarch                                     3.1.10-8.0.1.el9                                      ol9_oci_included                                        60 k
 python3-wcwidth                                                noarch                                     0.2.5-8.el9                                           ol9_appstream                                           65 k
 python3-zipp                                                   noarch                                     3.20.1-2.el9                                          ol9_oci_included                                        48 k

Transaction Summary
==============================================================================================================================================================================================================================
Install  8 Packages
Upgrade  1 Package

Total download size: 138 M
Is this ok [y/N]: y
<略>
Upgraded:
  python39-oci-sdk-2.162.0-1.el9.x86_64                                                                                                                                                                                       
Installed:
  python3-arrow-1.2.3-5.el9.noarch     python3-importlib-metadata-4.12.0-2.el9.noarch   python3-jmespath-0.10.0-4.el9.noarch   python3-prompt-toolkit-3.0.38-4.el9.noarch   python3-terminaltables-3.1.10-8.0.1.el9.noarch  
  python3-wcwidth-0.2.5-8.el9.noarch   python3-zipp-3.20.1-2.el9.noarch                 python39-oci-cli-3.69.0-1.el9.noarch  

Complete!
[root@ocimail ~]# 

いれたものの、DNSの逆引き設定ができそうな感じはなかった・・・

とりあえず、IPv6を使わないようにすればごまかせる、という話が「How I Fixed Gmail Rejecting Emails by Disabling IPv6 in Postfix」にあったので /etc/postfix/main.cfの「inet_protocols = all」を「inet_protocols = ipv4」に変更

# Enable IPv4, and IPv6 if supported
inet_protocols = ipv4

ただ、これをやったところ、dovecot submissionで受け取ったメールがpostfixに引き渡されてくれないという問題が発生・・・

how to set smtp-client -> submission_relay_host for IPv4 only?」で似たような感じで、IPv4だけでつなげたい場合設定はあるのか?という話があるが、/etc/hosts に書くぐらいの対処方法しかないようだ

で・・・さらに原因を調査してみて判明したこと

どうやら、Oracle Cloud内部の仮想マシン上から外部のIPv4アドレスに対してのポート25アクセスができない模様

IPv6アドレスであればいける

[root@ocimail ~]# telnet 外部メールサーバ 25
Trying <IPv6アドレス>...
Connected to 外部メールサーバ.
Escape character is '^]'.
220 外部メールサーバ ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@ocimail ~]# telnet -4 外部メールサーバ 25
Trying <IPv4アドレス>...
^C
[root@ocimail ~]# 

ポート80だったらIPv4でも問題無いので、IPv4 ポート25に関してだけ規制されている模様

[root@ocimail ~]# telnet -4 外部メールサーバ 80
Trying <IPv4アドレス>...
Connected to 外部メールサーバ.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Thu, 30 Oct 2025 06:02:36 GMT
Content-Type: text/html
Content-Length: 162
Connection: close
Location: https://_/
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Content-Security-Policy: default-src https: data: 'unsafe-inline' 'unsafe-eval'
Referrer-Policy: strict-origin

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Connection closed by foreign host.
[root@ocimail ~]# 

試しにOCIのセキュリティリストのセキュリティルールにて、エグレスルールとして、ポート25を追加してみたものの状況は変わりませんでした。(ステートフルのチェックを入れた場合も変化無し)

・・・Oracle Cloudドキュメントにポート25はブロックしてると記載されていました。

アウトバウンドSMTPがブロックされます

ESXi上のWindows仮想マシンの仮想ディスクに対してSDeleteコマンドを実行してみたログ

ESXi上で仮想マシンを作った場合に、Thinディスクフォーマットで仮想ディスクを作ると、実際にデータを書き込んだ場合にのみ容量を消費する。

じゃあ、1回書き込んだデータを削除した場合に、自動的に開放してくれるかというと、なかなか難しいことがあるようだ(VMware Storage Space Reclamation in vSphere)

手動で開放する手法がKBにある「Reclaiming disk space from thin provisioned VMDK files when ESXI Host still sees blocks even after removed from GuestOS

Linuxの場合は仮想マシンを止めた後、ESXi shellから仮想ディスクVMDKファイルに対して「vmkfstool -K ディスクファイル名.vmdk」を実行する。

Windowsの場合は、Windows OS上でMicrosoftが配布しているSDeleteコマンド を各ドライブレターに対して実行する・・・ということになっている。

とりあえず実験してみることにした

ESXi上の認識

管理者権限でコマンドプロンプトかPowerShellを開き「sdelete.exe -z c:」を実行

初回は下記の様にEULAが表示されるので「Agree」(承諾)する

実行ログ

PS C:\Users\Administrator\Downloads\SDelete> .\sdelete.exe -z c:

SDelete v2.05 - Secure file delete
Copyright (C) 1999-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
Free space cleaned on C:\
1 drive cleaned.
PS C:\Users\Administrator\Downloads\SDelete>

実行完了後の状態を確認すると、特に変わらないような気がする・・・

うーん・・・

効果がわからないので他のWindowsサーバでも試してみる

sdeleteを実行

なんか大量にPurgeが発生している模様で表示がおかしい・・・

14時間経過後・・・

終わらない・・・

そこから10分・・・終わった

PS C:\Users\Administrator> .\Downloads\SDelete\sdelete.exe -z c:

SDelete v2.05 - Secure file delete
Copyright (C) 1999-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
Free space cleaned on C:\
1 drive cleaned.
PS C:\Users\Administrator> .\Downloads\SDelete\sdelete.exe -z d:

SDelete v2.05 - Secure file delete
Copyright (C) 1999-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

SDelete is set for 1 pass.
Free space cleaned on D:\
1 drive cleaned.
PS C:\Users\Administrator>

なんで、そんなことになってるのかな?と思ったら作業してたDドライブに対してスケジュールジョブによりたくさんのデータが書き込まれていたためでした・・・ジョブ停止忘れてましたね・・・

よって、SDeleteコマンドを実行した意味がなくなってしまったということに・・・

ただ、実行中にいろいろ調べてみたところ、NVMe上のVMFS領域だと、わざわざsdeleteコマンド実行しなくても勝手に相当する動作をやってくれるのでは?という話もあった

とりあえず、Windows Server 2025環境で実行してみた限り、なんか影響があったようには感じなかった

Oracle Linux 10でWordPressサーバを立てる

Oracle Cloud InfrastructureでOracle Linux 10イメージがリリースされました。

2025/09/09時点では Oracle-Linux-10.0-2025.08.31-0 というバージョンでした。

こちらを使用してWordPressサーバを立ててみる手順です

ただ、2025/09/09時点ではOracle Linux 10用のOracle Cloud Agentが完成していない、ということで、いまいちお勧めできない状況です。

記事修正履歴

2025/09/09: 作成
2025/09/10:
 手順14 SSL証明書自動更新設定を追加
 準備1-3: イングレスルールとエグレスルールにIPv6用設定を追加

2025/09/19: トラブル対応手順
 トラブル対応手順1: python3-pyOpenSSLのconflict問題

準備1: Oracle Cloud用手順

準備1-1: IPv6アドレス割り当て:Oracle Cloudコンソール側

Oracle Cloudのコンソールを開いて、インスタンスにIPv6アドレスを割り当てます。

また、割り当てられたIPv6アドレスを確認します。

準備1-2: インスタンス側操作

Oracle Linux 10のイメージではIPv6が有効化されていたので、特に設定する必要はありませんでした。

準備 1-3: クラウドネットワークのセキュリティリストにhttp,https用設定

Oracle Cloudの[ネットワーキング]-[仮想クラウドネットワーク]にて、作成されているvcnを選択

[セキュリティ]をクリックし、「セキュリティリスト」を開き、登録されている「Default Security List for vcn~」をクリック

[セキュリティルール]タブにて、「イングレスルール」として以下を追加する

ソースタイプ: CIDR
ソースCIDR: 0.0.0.0/0
IPプロトコル: TCP
ソースポート範囲: all
宛先ポート範囲: 80,443
説明: http

ソースタイプ: CIDR
ソースCIDR: ::/0
IPプロトコル: TCP
ソースポート範囲: all
宛先ポート範囲: 80,443
説明: http for IPv6

また、IPv6経由のsshでアクセスしたい場合にルールがない場合は下記も追加

ソースタイプ: CIDR
ソースCIDR: ::/0
IPプロトコル: TCP
ソースポート範囲: all
宛先ポート範囲: 22
説明: ssh for IPv6

[セキュリティルール]タブにて、「エグレスルール」として以下を追加する(IPv4用の登録はすでにあるが、IPv6用の登録がないので追加する)

宛先タイプ: CIDR
宛先CIDR: ::/0
IPプロトコル: すべてのポートのすべてのトラフィック
説明:

準備2: 一般的な前準備

準備2-1: 日本時間にする

日本に住んでいる場合、日本時間表記の方が使いやすいので、OSも日本時間表示に設定する。

$ sudo timedatectl set-timezone Japan
$ 

手順2-2:swap追加

Oracle Linux 8からメモリ1GB環境ではEPELレポジトリ追加後のdnfコマンド処理で応答がなくなることが多発している。

調査した結果、メモリとスワップが少ないと発生し、Oracle Linux 9環境では合計で5GB程度ないと支障がでる、ということがわかった。

2025/09/09時点での Oracle-Linux-10.0-2025.08.31-0 ではスワップは約1GBと足らない状態となっている。

追加のファイルスワップを作成できそうな領域は「/パーテーション」か「/var/oledパーテーション」となるので、どちらかにファイルスワップを作成する

[opc@oci10 ~]$ sudo fallocate -l 4G /var/oled/swapfile
[opc@oci10 ~]$ ls -l /var/oled/swapfile 
-rw-r--r--. 1 root root 4294967296 Sep  9 13:35 /var/oled/swapfile
[opc@oci10 ~]$ sudo chmod 600 /var/oled/swapfile 
[opc@oci10 ~]$ ls -l /var/oled/swapfile 
-rw-------. 1 root root 4294967296 Sep  9 13:35 /var/oled/swapfile
[opc@oci10 ~]$ sudo mkswap /var/oled/swapfile 
Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
no label, UUID=bdd4f7a6-1dcc-43c8-bb2d-8f42ac2faf3f
[opc@oci10 ~]$ 

作成したファイルをスワップとして登録

[opc@oci10 ~]$ sudo swapon /var/oled/swapfile 
[opc@oci10 ~]$ swapon --show
NAME               TYPE SIZE   USED PRIO
/.swapfile         file 951M 144.4M   -2
/var/oled/swapfile file   4G     0B   -3
[opc@oci10 ~]$ cat /proc/swaps 
Filename                                Type            Size            Used            Priority
/.swapfile                              file            973820          147908          -2
/var/oled/swapfile                      file            4194300         0               -3
[opc@oci10 ~]$ 

/etc/fstabにスワップファイルの記述「/var/oled/swapfile none swap sw 0 0」を追加

[opc@oci10 ~]$ sudo vi /etc/fstab 
[opc@oci10 ~]$ cat /etc/fstab 
#
# /etc/fstab
# Created by anaconda on Wed Jul 16 02:09:25 2025
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=7d252e5c-0a4d-4f09-afca-58d232b956c2 /                       xfs     defaults        0 0
UUID=02208839-bc64-488a-9f5f-b87452a0f76d /boot                   xfs     defaults        0 0
UUID=9A6D-CFD1          /boot/efi               vfat    defaults,uid=0,gid=0,umask=077,shortname=winnt 0 2
UUID=81c1f07e-ee73-470f-b0ec-d21ad8693c3e /var/oled               xfs     defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,nodev,nosuid,noexec      0 0
######################################
## ORACLE CLOUD INFRASTRUCTURE CUSTOMERS
##
## If you are adding an iSCSI remote block volume to this file you MUST
## include the '_netdev' mount option or your instance will become
## unavailable after the next reboot.
## SCSI device names are not stable across reboots; please use the device UUID instead of /dev path.
##
## Example:
## UUID="94c5aade-8bb1-4d55-ad0c-388bb8aa716a"   /data1    xfs       defaults,noatime,_netdev      0      2
##
## More information:
## https://docs.cloud.oracle.com/Content/Block/Tasks/connectingtoavolume.htm
/.swapfile      none    swap    sw      0       0
/var/oled/swapfile      none    swap    sw      0       0
[opc@oci10 ~]$ 

準備2-3: パッケージを最新にアップデートする

現時点でインストール済みパッケージを最新にします。

$ sudo dnf update -y
<略>
$ sudo reboot

2025/09/19時点ではpython3-pyOpenSSL関連で失敗するので後述の「トラブル対応手順1: python3-pyOpenSSLのconflict問題」を行う

手順2-4:日本語Locale対応

ja_JP.UTF-8など日本語Localeで設定した際、「Failed to set locale, defaulting to C.UTF-8」というメッセージが出力される場合があります。

その場合は日本語Localeを追加インストールします。

$ sudo dnf install langpacks-ja 
<略>
$

手順2-5:kdump無効化

メモリが1GBしかないので、kdump.serviceの実行に失敗したりしている。

[opc@oci10 ~]$ systemctl status kdump
× kdump.service - Crash recovery kernel arming
     Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2025-09-09 12:01:53 JST; 1h 24min ago
 Invocation: 1833096bfd314195995486c8d6963173
   Main PID: 2556 (code=exited, status=1/FAILURE)
   Mem peak: 3.3M
        CPU: 59ms

Sep 09 12:01:52 oci10 systemd[1]: Starting kdump.service - Crash recovery kernel arming...
Sep 09 12:01:53 oci10 kdumpctl[2586]: kdump: No memory reserved for crash kernel
Sep 09 12:01:53 oci10 kdumpctl[2586]: kdump: Starting kdump: [FAILED]
Sep 09 12:01:53 oci10 systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Sep 09 12:01:53 oci10 systemd[1]: kdump.service: Failed with result 'exit-code'.
Sep 09 12:01:53 oci10 systemd[1]: Failed to start kdump.service - Crash recovery kernel arming.
[opc@oci10 ~]$ 

ダンプとっても使わないし、エラーとならないようkdumpを無効化してしまいます。

[opc@oci10 ~]$ sudo systemctl disable kdump.service
Removed '/etc/systemd/system/multi-user.target.wants/kdump.service'.
[opc@oci10 ~]$ 

手順3: EPELレポジトリの追加

EPELレポジトリを使うので、使用できるようにします。

手順3-1:レポジトリの状態を確認

現状のレポジトリ設定状況を「sudo dnf repolist –all」を実行して確認します。

[opc@oci10 ~]$ sudo dnf repolist --all
repo id                                                                                                                                 repo name                                                                                                                                                                status
ol10_RDMA                                                                                                                               Oracle Linux 10 (x86_64) RDMA                                                                                                                                            disabled
ol10_UEKR8                                                                                                                              Oracle Linux 10 UEK Release 8 (x86_64)                                                                                                                                   enabled
ol10_addons                                                                                                                             Oracle Linux 10 Addons (x86_64)                                                                                                                                          enabled
ol10_appstream                                                                                                                          Oracle Linux 10 Application Stream Packages (x86_64)                                                                                                                     enabled
ol10_baseos_latest                                                                                                                      Oracle Linux 10 BaseOS Latest (x86_64)                                                                                                                                   enabled
ol10_codeready_builder                                                                                                                  Oracle Linux 10 CodeReady Builder (x86_64) - (Unsupported)                                                                                                               disabled
ol10_developer                                                                                                                          Oracle Linux 10 Development Packages (x86_64)                                                                                                                            disabled
ol10_distro_builder                                                                                                                     Oracle Linux 10 Distro Builder (x86_64) - (Unsupported)                                                                                                                  disabled
ol10_ksplice                                                                                                                            Ksplice for Oracle Linux 10 (x86_64)                                                                                                                                     enabled
ol10_oci_included                                                                                                                       Oracle Linux 10 OCI Included Packages (x86_64)                                                                                                                           enabled
ol10_u0_baseos_base                                                                                                                     Oracle Linux 10 BaseOS GA (x86_64)                                                                                                                                       disabled
ol10_u0_developer_EPEL                                                                                                                  Oracle Linux 10.0 EPEL Packages for Development (x86_64)                                                                                                                 disabled
ol10_x86_64_userspace_ksplice                                                                                                           Ksplice aware userspace packages for Oracle Linux 10 (x86_64)                                                                                                            disabled
[opc@oci10 ~]$ 

有効化するために「sudo dnf config-manager –set-enabled ol10_u0_developer_EPEL」を実行します。

[opc@oci10 ~]$ sudo dnf config-manager --set-enabled ol10_u0_developer_EPEL
[opc@oci10 ~]$ sudo dnf repolist --all
repo id                                                                                                                                 repo name                                                                                                                                                                status
ol10_RDMA                                                                                                                               Oracle Linux 10 (x86_64) RDMA                                                                                                                                            disabled
ol10_UEKR8                                                                                                                              Oracle Linux 10 UEK Release 8 (x86_64)                                                                                                                                   enabled
ol10_addons                                                                                                                             Oracle Linux 10 Addons (x86_64)                                                                                                                                          enabled
ol10_appstream                                                                                                                          Oracle Linux 10 Application Stream Packages (x86_64)                                                                                                                     enabled
ol10_baseos_latest                                                                                                                      Oracle Linux 10 BaseOS Latest (x86_64)                                                                                                                                   enabled
ol10_codeready_builder                                                                                                                  Oracle Linux 10 CodeReady Builder (x86_64) - (Unsupported)                                                                                                               disabled
ol10_developer                                                                                                                          Oracle Linux 10 Development Packages (x86_64)                                                                                                                            disabled
ol10_distro_builder                                                                                                                     Oracle Linux 10 Distro Builder (x86_64) - (Unsupported)                                                                                                                  disabled
ol10_ksplice                                                                                                                            Ksplice for Oracle Linux 10 (x86_64)                                                                                                                                     enabled
ol10_oci_included                                                                                                                       Oracle Linux 10 OCI Included Packages (x86_64)                                                                                                                           enabled
ol10_u0_baseos_base                                                                                                                     Oracle Linux 10 BaseOS GA (x86_64)                                                                                                                                       disabled
ol10_u0_developer_EPEL                                                                                                                  Oracle Linux 10.0 EPEL Packages for Development (x86_64)                                                                                                                 enabled
ol10_x86_64_userspace_ksplice                                                                                                           Ksplice aware userspace packages for Oracle Linux 10 (x86_64)                                                                                                            disabled
[opc@oci10 ~]$ 

手順4: インターネット公開用設定

手順4-1: fail2ban導入

公開サーバは各種のアタックにさらされます。管理用sshポートにもやってきます。

多少なりとも軽減するためにEPELレポジトリ収録のfail2banを使用します。

$ sudo dnf install fail2ban -y
<略>
$

カスタム設定は/etc/fail2ban/jail.local に対して行います。

[opc@oci10 ~]$ sudo vi /etc/fail2ban/jail.local
[opc@oci10 ~]$ cat /etc/fail2ban/jail.local 
[DEFAULT]
# 86400秒=24時間以内に5回不審なアクセスがあったら24時間BAN
bantime  = 86400
findtime  = 86400
maxretry = 5
# 259200秒=3日以内に5回不審なアクセスがあったら3日間BAN
#bantime  = 259200
#findtime  = 259200
#maxretry = 5
# 除外IP
ignoreip = 127.0.0.1 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
[sshd]
enabled = true
banaction = firewallcmd-ipset
[opc@oci10 ~]$ 

上記設定では24時間BANにしていますが、まぁ、3日BANでもかまわないとは思います。(本当に間違えた場合に困るのでほどほどにしておくとよい)

fail2banをOS起動時に実行する設定と、今すぐfail2banを起動するコマンドを実行します。

[opc@oci10 ~]$ sudo systemctl enable --now fail2ban
Created symlink '/etc/systemd/system/multi-user.target.wants/fail2ban.service' → '/usr/lib/systemd/system/fail2ban.service'.
[opc@oci10 ~]$ 

以降、アタックがあると /var/log/fail2ban.log にログが出ます。

手順4-2: Webサーバ用ポート公開設定

この段階では、dhcpv6-clientとsshのみが許可されています。

Webサーバ公開用にhttp(ポート80)とhttps(ポート443)を追加します。

[opc@oci10 ~]$ sudo firewall-cmd --list-all
public (default, active)
  target: default
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: dhcpv6-client ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
[opc@oci10 ~]$ 
[opc@oci10 ~]$ sudo firewall-cmd --permanent --add-service=http
success
[opc@oci10 ~]$ sudo firewall-cmd --permanent --add-service=https
success
[opc@oci10 ~]$ sudo firewall-cmd --reload
success
[opc@oci10 ~]$ sudo firewall-cmd --list-all
public (default, active)
  target: default
  ingress-priority: 0
  egress-priority: 0
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: dhcpv6-client http https ssh
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
[opc@oci10 ~]$ 

手順5: php 追加

Oracle Linux 8と9であったmoduleで複数バージョン提供という機能はOracle Linux 10ではなくなりました。(Using DNF Modules and Application Streams)

No modular packages are available for Oracle Linux 10. Different versions of userspace packages continue to be available as Application Streams but don’t use the package modularity available in previous releases.

なので、単純に「dnf install php」でインストールします。

[opc@oci10 ~]$ sudo dnf install php -y
Last metadata expiration check: 0:13:46 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                       Architecture                                                      Version                                                                             Repository                                                                     Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 php                                                                           x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                 75 k
Installing dependencies:
 apr                                                                           x86_64                                                            1.7.5-2.el10                                                                        ol10_appstream                                                                135 k
 apr-util                                                                      x86_64                                                            1.6.3-21.el10                                                                       ol10_appstream                                                                102 k
 apr-util-lmdb                                                                 x86_64                                                            1.6.3-21.el10                                                                       ol10_appstream                                                                 14 k
 capstone                                                                      x86_64                                                            5.0.1-6.el10                                                                        ol10_appstream                                                                1.0 M
 httpd-core                                                                    x86_64                                                            2.4.63-1.0.1.el10_0.2                                                               ol10_appstream                                                                1.8 M
 httpd-filesystem                                                              noarch                                                            2.4.63-1.0.1.el10_0.2                                                               ol10_appstream                                                                9.1 k
 httpd-tools                                                                   x86_64                                                            2.4.63-1.0.1.el10_0.2                                                               ol10_appstream                                                                 91 k
 libxslt                                                                       x86_64                                                            1.1.39-8.el10_0                                                                     ol10_appstream                                                                208 k
 mailcap                                                                       noarch                                                            2.1.54-8.el10                                                                       ol10_baseos_latest                                                             39 k
 nginx-filesystem                                                              noarch                                                            2:1.26.3-1.0.1.el10                                                                 ol10_appstream                                                                 31 k
 oracle-logos-httpd                                                            noarch                                                            100.1-1.0.3.el10                                                                    ol10_baseos_latest                                                             53 k
 php-common                                                                    x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                815 k
Installing weak dependencies:
 apr-util-openssl                                                              x86_64                                                            1.6.3-21.el10                                                                       ol10_appstream                                                                 16 k
 httpd                                                                         x86_64                                                            2.4.63-1.0.1.el10_0.2                                                               ol10_appstream                                                                 63 k
 mod_http2                                                                     x86_64                                                            2.0.29-2.el10_0.1                                                                   ol10_appstream                                                                177 k
 mod_lua                                                                       x86_64                                                            2.4.63-1.0.1.el10_0.2                                                               ol10_appstream                                                                 55 k
 php-cli                                                                       x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                3.7 M
 php-fpm                                                                       x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                1.9 M
 php-mbstring                                                                  x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                584 k
 php-opcache                                                                   x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                430 k
 php-pdo                                                                       x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                158 k
 php-xml                                                                       x86_64                                                            8.3.19-1.el10_0                                                                     ol10_appstream                                                                225 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  23 Packages

Total download size: 12 M
Installed size: 57 M
Downloading Packages:
<略>
  Running scriptlet: httpd-2.4.63-1.0.1.el10_0.2.x86_64                                                                                                                                                                                                                                                            23/23 
  Running scriptlet: php-8.3.19-1.el10_0.x86_64                                                                                                                                                                                                                                                                    23/23 

Installed:
  apr-1.7.5-2.el10.x86_64                            apr-util-1.6.3-21.el10.x86_64                 apr-util-lmdb-1.6.3-21.el10.x86_64      apr-util-openssl-1.6.3-21.el10.x86_64      capstone-5.0.1-6.el10.x86_64            httpd-2.4.63-1.0.1.el10_0.2.x86_64        httpd-core-2.4.63-1.0.1.el10_0.2.x86_64         
  httpd-filesystem-2.4.63-1.0.1.el10_0.2.noarch      httpd-tools-2.4.63-1.0.1.el10_0.2.x86_64      libxslt-1.1.39-8.el10_0.x86_64          mailcap-2.1.54-8.el10.noarch               mod_http2-2.0.29-2.el10_0.1.x86_64      mod_lua-2.4.63-1.0.1.el10_0.2.x86_64      nginx-filesystem-2:1.26.3-1.0.1.el10.noarch     
  oracle-logos-httpd-100.1-1.0.3.el10.noarch         php-8.3.19-1.el10_0.x86_64                    php-cli-8.3.19-1.el10_0.x86_64          php-common-8.3.19-1.el10_0.x86_64          php-fpm-8.3.19-1.el10_0.x86_64          php-mbstring-8.3.19-1.el10_0.x86_64       php-opcache-8.3.19-1.el10_0.x86_64              
  php-pdo-8.3.19-1.el10_0.x86_64                     php-xml-8.3.19-1.el10_0.x86_64               

Complete!
[opc@oci10 ~]$ 

php 8.3.19がインストールされました。

手順6: MySQL設定編

Oralce Linux 10ではMySQL 8.4.4 か mariadb 10.11.11が提供されています。

とりあえず、Oracle直営なのでMySQLを使っておきます。

[opc@oci10 ~]$ sudo dnf install mysql8.4-server -y
Last metadata expiration check: 0:17:41 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                               Architecture                                                      Version                                                                     Repository                                                                     Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 mysql8.4-server                                                                       x86_64                                                            8.4.4-2.el10                                                                ol10_appstream                                                                 18 M
Installing dependencies:
 libicu                                                                                x86_64                                                            74.2-5.el10_0                                                               ol10_baseos_latest                                                             10 M
 mariadb-connector-c-config                                                            noarch                                                            3.4.4-1.el10                                                                ol10_baseos_latest                                                            8.8 k
 mecab                                                                                 x86_64                                                            0.996-9.el10                                                                ol10_appstream                                                                390 k
 mysql-selinux                                                                         noarch                                                            1.0.13-2.el10                                                               ol10_appstream                                                                 37 k
 mysql8.4                                                                              x86_64                                                            8.4.4-2.el10                                                                ol10_appstream                                                                2.4 M
 mysql8.4-common                                                                       noarch                                                            8.4.4-2.el10                                                                ol10_appstream                                                                102 k
 mysql8.4-errmsg                                                                       noarch                                                            8.4.4-2.el10                                                                ol10_appstream                                                                545 k
 protobuf-lite                                                                         x86_64                                                            3.19.6-11.el10                                                              ol10_appstream                                                                262 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  9 Packages

Total download size: 32 M
Installed size: 199 M
Downloading Packages:
<略>
  Running scriptlet: mysql8.4-server-8.4.4-2.el10.x86_64                                                                                                                                                                                                                                                             9/9 

Installed:
  libicu-74.2-5.el10_0.x86_64            mariadb-connector-c-config-3.4.4-1.el10.noarch    mecab-0.996-9.el10.x86_64    mysql-selinux-1.0.13-2.el10.noarch    mysql8.4-8.4.4-2.el10.x86_64    mysql8.4-common-8.4.4-2.el10.noarch    mysql8.4-errmsg-8.4.4-2.el10.noarch    mysql8.4-server-8.4.4-2.el10.x86_64   
  protobuf-lite-3.19.6-11.el10.x86_64   

Complete!
[opc@oci10 ~]$ 

mysqldを自動起動する設定といますぐ起動する設定をします。

[opc@oci10 ~]$ sudo systemctl enable --now mysqld
Created symlink '/etc/systemd/system/multi-user.target.wants/mysqld.service' → '/usr/lib/systemd/system/mysqld.service'.
[opc@oci10 ~]$ 

WordPress用データベースを作成します。

[opc@oci10 ~]$ sudo mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.4.4 Source distribution

Copyright (c) 2000, 2025, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database DB名 character set utf8;
Query OK, 1 row affected, 1 warning (0.01 sec)

mysql> create user wordpress@localhost identified by 'パスワード';
Query OK, 0 rows affected (0.02 sec)

mysql> grant all privileges on DB名.* to wordpress@localhost;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye
[opc@oci10 ~]$ 

手順7-1: httpdインストール

httpdをインストールします。

Oracle Linux 10.0ではWebサーバとして Apache(httpd) 2.4.63 、nginx 1.26.3が使えるが、apacheを使う。

[opc@oci10 ~]$ sudo dnf install httpd -y
Last metadata expiration check: 0:23:31 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Package httpd-2.4.63-1.0.1.el10_0.2.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[opc@oci10 ~]$ 

よく見たらphpインストール時にインストールされていました。

手順7-2: dehydratedによるLet’s Encrypt導入

Let’s EncryptによるSSL証明書導入はcertbotを使うのが一般的ではあるのだが、python環境とあわせてパッケージサイズが大きいので、コンパクトでEPELにも収録されているdehydratedを使用する。

[opc@oci10 ~]$ sudo dnf install dehydrated -y
Last metadata expiration check: 0:25:08 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                  Architecture                                                         Version                                                                        Repository                                                                            Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 dehydrated                                                               noarch                                                               0.7.1-6.el10_0                                                                 ol10_u0_developer_EPEL                                                               156 k
Installing dependencies:
 s-nail                                                                   x86_64                                                               14.9.24-12.el10                                                                ol10_appstream                                                                       641 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  2 Packages

Total download size: 797 k
Installed size: 1.4 M
Downloading Packages:
<略>
Installed:
  dehydrated-0.7.1-6.el10_0.noarch                                                                                                                             s-nail-14.9.24-12.el10.x86_64                                                                                                                            

Complete!
[opc@oci10 ~]$ 

dehydratedによるSSL証明書取得処理には /var/www/dehydrated が使用されるためディレクトリを作成します。

[opc@oci10 ~]$ sudo mkdir /var/www/dehydrated
[opc@oci10 ~]$

http://~/.well-known/acme-challenge でアクセスした時に上記ディレクトリが開くようApacheの設定を /etc/httpd/conf.d/dehydrated.conf として作成します。(sudo vi /etc/httpd/conf.d/dehydrated.conf )

[opc@oci10 ~]$ sudo vi /etc/httpd/conf.d/dehydrated.conf
[opc@oci10 ~]$ cat /etc/httpd/conf.d/dehydrated.conf 
Alias /.well-known/acme-challenge /var/www/dehydrated
<Directory /var/www/dehydrated/>
</Directory>
[opc@oci10 ~]$ 

httpdを起動します

[opc@oci10 ~]$ sudo systemctl start httpd
[opc@oci10 ~]$ 

SSL証明書を発行するホスト名を /etc/dehydrated/domains.txt に記載する。(sudo vi /etc/dehydrated/domains.txt)

$ sudo vi /etc/dehydrated/domains.txt
$ sudo cat /etc/dehydrated/domains.txt
ホスト1名.ドメイン名 ホスト2名.ドメイン名
$

登録操作を開始します。

[opc@oci10 ~]$ sudo dehydrated --register
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh

To use dehydrated with this certificate authority you have to agree to their terms of service which you can find here: https://letsencrypt.org/documents/LE-SA-v1.5-February-24-2025.pdf

To accept these terms of service run "/bin/dehydrated --register --accept-terms".
[opc@oci10 ~]$ sudo dehydrated --register --accept-terms
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh
+ Generating account key...
+ Registering account key with ACME server...
+ Fetching account URL...
+ Done!
[opc@oci10 ~]$ 

初回のSSL証明書発行処理を実行します。

$ sudo dehydrated --cron
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh
 + Creating chain cache directory /etc/dehydrated/chains
Processing ホスト1名.ドメイン名 with alternative names: ホスト2名.ドメイン名
 + Creating new directory /etc/dehydrated/certs/ホスト1名.ドメイン名 ...
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 2 authorizations URLs from the CA
 + Handling authorization for ホスト1名.ドメイン名
 + Handling authorization for ホスト2名.ドメイン名
 + 2 pending challenge(s)
 + Deploying challenge tokens...
 + Responding to challenge for ホスト1名.ドメイン名 authorization...
 + Challenge is valid!
 + Responding to challenge for ホスト2名.ドメイン名 authorization...
 + Challenge is valid!
 + Cleaning challenge tokens...
 + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Done!
 + Running automatic cleanup
$

手順7-3: WebサーバへのSSL証明書設定

まず、httpdにmod_sslを追加します。

[opc@oci10 ~]$ sudo dnf install mod_ssl -y
Last metadata expiration check: 0:33:34 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                Architecture                                                          Version                                                                                Repository                                                                     Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 mod_ssl                                                                x86_64                                                                1:2.4.63-1.0.1.el10_0.2                                                                ol10_appstream                                                                113 k
Installing dependencies:
 sscg                                                                   x86_64                                                                3.0.5-9.el10                                                                           ol10_appstream                                                                 50 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  2 Packages

Total download size: 163 k
Installed size: 366 k
Downloading Packages:
<略>
Installed:
  mod_ssl-1:2.4.63-1.0.1.el10_0.2.x86_64                                                                                                                             sscg-3.0.5-9.el10.x86_64                                                                                                                            

Complete!
[opc@oci10 ~]$ 

標準の /etc/httpd/conf.d/ssl.conf は使わず、Mozilla SSL Configuration Generatorベースの設定を /etc/httpd/conf.d/ssl-mozilla.conf として作成します。(なお、ssl.conf には”Listen 443 https”設定もあるので、そのままにしています)

また、Let’s encryptingを使用する場合2025年5月以降OCSPに対応しなくなりました(Removing OCSP URLs from Certificates)

このため、「SSLUseStapling Off」を設定します

# generated 2025-09-09, Mozilla Guideline v5.7, Apache 2.4.63, OpenSSL 3.2.2, intermediate config
# https://ssl-config.mozilla.org/#server=apache&amp;version=2.4.63&amp;config=intermediate&amp;openssl=3.2.2&amp;guideline=5.7

# this configuration requires mod_ssl, mod_rewrite, mod_headers, and mod_socache_shmcb
&lt;VirtualHost *:80>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/
    RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]
&lt;/VirtualHost>

&lt;VirtualHost *:443>
    SSLEngine on

    # curl https://ssl-config.mozilla.org/ffdhe2048.txt >> /path/to/signed_cert_and_intermediate_certs_and_dhparams
    SSLCertificateFile      /etc/dehydrated/certs/<ホスト名>/fullchain.pem
    SSLCertificateKeyFile   /etc/dehydrated/certs/<ホスト名>/privkey.pem

    # enable HTTP/2, if available
    Protocols h2 http/1.1

    # HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
    Header always set Strict-Transport-Security "max-age=63072000"
&lt;/VirtualHost>

# intermediate configuration
SSLProtocol             -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd       Curves X25519:prime256v1:secp384r1
SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
SSLHonorCipherOrder     off
SSLSessionTickets       off

SSLUseStapling Off
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"

httpdを再起動します。

[opc@oci10 ~]$ sudo systemctl restart httpd
[opc@oci10 ~]$ 

手順8: WordPress導入

手順8-1: WordPressの基本インストール

WordPressのWebから最新版をダウンロードして、/var/www/html以下に展開します。
(日本語環境向けのlatest-ja.tar.gzファイルを使っていないのはWordpressプラグインが正常にインストールできるかを確認するためにWP Multibyte Patchを手動インストールする手順を入れているためです)

[opc@oci10 ~]$ cd /var/www/html
[opc@oci10 html]$ ls
[opc@oci10 html]$ sudo curl -O https://wordpress.org/latest.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25.6M  100 25.6M    0     0  4909k      0  0:00:05  0:00:05 --:--:-- 5921k
[opc@oci10 html]$ ls
latest.tar.gz
[opc@oci10 html]$ sudo tar xfz latest.tar.gz 
[opc@oci10 html]$ ls -l
total 26300
-rw-r--r--. 1 root root 26925441 Sep  9 14:33 latest.tar.gz
drwxr-xr-x. 5 root root     4096 Jul 16 00:09 wordpress
[opc@oci10 html]$ sudo rm latest.tar.gz 
[opc@oci10 html]$ ls
wordpress
[opc@oci10 html]$

WordPressディレクトリの所有者をWebサービスのユーザである「apache」に変更します。

[opc@oci10 html]$ ps -ef|grep http
root       66623       1  0 14:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache     66624   66623  0 14:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache     66625   66623  0 14:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache     66639   66623  0 14:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache     66644   66623  0 14:30 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache     66808   66623  0 14:31 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
opc        66961    7040  0 14:34 pts/0    00:00:00 grep --color=auto http
[opc@oci10 html]$ sudo chown -R apache:apache wordpress/
[opc@oci10 html]$ ls -l
total 4
drwxr-xr-x. 5 apache apache 4096 Jul 16 00:09 wordpress
[opc@oci10 html]$ 

/var/www/html/wordpress をDocumentRootとするように ssl-mozilla.conf に追加して、httpdを再起動します。

[opc@oci10 html]$ sudo vi /etc/httpd/conf.d/ssl-mozilla.conf 
[opc@oci10 html]$ cat /etc/httpd/conf.d/ssl-mozilla.conf 
# generated 2025-09-09, Mozilla Guideline v5.7, Apache 2.4.63, OpenSSL 3.2.2, intermediate config
# https://ssl-config.mozilla.org/#server=apache&version=2.4.63&config=intermediate&openssl=3.2.2&guideline=5.7

# this configuration requires mod_ssl, mod_rewrite, mod_headers, and mod_socache_shmcb
<VirtualHost *:80>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/
    RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]
</VirtualHost>

<VirtualHost *:443>
    DocumentRoot /var/www/html/wordpress
    SSLEngine on

    # curl https://ssl-config.mozilla.org/ffdhe2048.txt >> /path/to/signed_cert_and_intermediate_certs_and_dhparams
    SSLCertificateFile      /etc/dehydrated/certs/<ホスト名>/fullchain.pem
    SSLCertificateKeyFile   /etc/dehydrated/certs/<ホスト名>/privkey.pem 

    # enable HTTP/2, if available
    Protocols h2 http/1.1

    # HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
    Header always set Strict-Transport-Security "max-age=63072000"
</VirtualHost>

# intermediate configuration
SSLProtocol             -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd       Curves X25519:prime256v1:secp384r1
SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
SSLHonorCipherOrder     off
SSLSessionTickets       off

SSLUseStapling Off
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
[opc@oci10 html]$ 
[opc@oci10 html]$ sudo systemctl restart httpd
[opc@oci10 html]$ 

手順8-2: 「missing the MySQL extension」がでる場合の手順

いまの状態でブラウザからアクセスすると、下記の表示になります。

これはphpからMySQLにアクセスするためのパッケージがインストールされていないためなので、php-mysqlndを追加して、httpdを再起動します。

[opc@oci10 ~]$ sudo dnf install php-mysqlnd -y
Last metadata expiration check: 0:55:51 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                     Architecture                                                           Version                                                                         Repository                                                                      Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 php-mysqlnd                                                                 x86_64                                                                 8.3.19-1.el10_0                                                                 ol10_appstream                                                                 211 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 211 k
Installed size: 378 k
Downloading Packages:
<略>
Installed:
  php-mysqlnd-8.3.19-1.el10_0.x86_64                                                                                                                                                                                                                                                                                     

Complete!
[opc@oci10 ~]$ sudo systemctl restart httpd
[opc@oci10 ~]$ 

WordPressの設定手順を進めると wp-config.php に書き込めない、と出ますので、「sudo vi /var/www/html/wordpress/wp-config.php」を実行し、指定された内容を記載します。

よくヤル凡ミスとして、wordpress DBのユーザ名を指定するところで「ユーザ名@localhost」としてしまう、ということ。「ユーザ名」だけじゃないと接続できません

なお、wordpressの表示言語を日本語にすることは手順9-3で、パーマリンクのURL型式を変更する、というのは手順12の .htaccess に関する設定を入れてからにします。

手順9: SELinux設定

手順9-1: httpdのネットワーク接続問題

一見するとここまででうまく動いているように見えます。

しかし、プラグインをインストールしようとするとエラーになります。

/var/log/audit/audit.logを確認すると下記のようなログが出ています。

type=AVC msg=audit(1622095859.957:2064): avc:  denied  { name_connect } for  pid=8908 comm="php-fpm" dest=443 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
type=AVC msg=audit(1622095868.397:2065): avc:  denied  { name_connect } for  pid=8313 comm="php-fpm" dest=443 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
type=AVC msg=audit(1622095868.401:2066): avc:  denied  { name_connect } for  pid=8313 comm="php-fpm" dest=80 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0

これはhttpd_can_network_connect という値で制御されている

現在の設定値を「sudo getsebool -a |grep httpd_can_network」で確認し、「sudo setsebool -P httpd_can_network_connect on」で有効にする

[opc@oci10 ~]$ sudo vi /var/www/html/wordpress/wp-config.php
[opc@oci10 ~]$ sudo getsebool -a |grep httpd_can_network
httpd_can_network_connect --> off
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_redis --> off
httpd_can_network_relay --> off
[opc@oci10 ~]$ sudo setsebool -P httpd_can_network_connect on
[opc@oci10 ~]$ sudo getsebool -a |grep httpd_can_network
httpd_can_network_connect --> on
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_redis --> off
httpd_can_network_relay --> off
[opc@oci10 ~]$ 

この変更ではhttpdの再起動は不要。

手順9-2: php-fpmの書き込み権限問題

プラグインやテーマのインストールについては問題なくても、WordPressのアップデートが出来ない。

このときの/var/log/audit/audit.logは下記

type=AVC msg=audit(1694506911.363:1538): avc:  denied  { write } for  pid=51364 comm="php-fpm" name="wordpress" dev="dm-0" ino=34891933 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_sys_content_t:s0 tclass=dir permissive=0

こちらは/var/www/html/wordpress に対して httpdから書き込みが行えるような SELinuxのコンテキストをつけることで解決する。

「sudo chcon -R -t httpd_sys_script_rw_t /var/www/html/wordpress」

[opc@oci10 ~]$ sudo ls -lZ /var/www/html/
total 4
drwxr-xr-x. 5 apache apache unconfined_u:object_r:httpd_sys_content_t:s0 4096 Sep  9 14:39 wordpress
[opc@oci10 ~]$ sudo chcon -R -t httpd_sys_script_rw_t /var/www/html/wordpress
[opc@oci10 ~]$ sudo ls -lZ /var/www/html/
total 4
drwxr-xr-x. 5 apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 4096 Sep  9 14:39 wordpress
[opc@oci10 ~]$ 

手順9-3:Wordpressプラグイン追加の動作確認

WordPressプラグインがインストールできる状態になっているかを確認するために「WP Multibyte Patch」をインストールします。

これをインストールするとWordpressの設定画面([Settings]-[General])に「Site language(サイトの言語)」が追加され、「日本語」表示に切り替えることができるようになります。

手順10: WordPressで取り扱えるファイルサイズの拡大

WordPressで取り扱えるファイルは標準状態だと2MBになっている。

WordPressのドキュメントのFile Upload Sizes を見ると、これはphpの設定ファイル /etc/php.ini による制限となっている。

Oracle Linux 10の標準設定では下記の値となっている。

<略>
post_max_size = 8M
<略>
upload_max_filesize = 2M
<略>

よくある手順だと軽率に /etc/php.ini を書き換えていますが、 /etc/php.d/ 以下にファイルを追加することで、そちらの設定項目を優先させることができる機能があるため、 /etc/php.d/90-wordpress.ini に変更したい2行だけを記載したファイルを作成します。

[opc@oci10 ~]$ sudo vi /etc/php.d/90-wordpress.ini
[opc@oci10 ~]$ cat /etc/php.d/90-wordpress.ini 
post_max_size = 100M
upload_max_filesize = 100M
[opc@oci10 ~]$ 

phpの設定変更を反映させるために「sudo systemctl restart php-fpm」を実行します。

[opc@oci10 ~]$ sudo systemctl restart php-fpm
[opc@oci10 ~]$ 

手順11: WordPressのSite Health Status対応

WordPressのサイトステータスを見てみると、いくつかパッケージを要求されている。

Oracle Linux 10.0では php-pecl-imagick php-pecl-zip php-intl をインストールする

[opc@oci10 ~]$ sudo dnf install php-pecl-imagick php-pecl-zip php-intl -y
Last metadata expiration check: 1:10:03 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                                    Architecture                                                 Version                                                                      Repository                                                                    Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 php-intl                                                                                   x86_64                                                       8.3.19-1.el10_0                                                              ol10_appstream                                                               228 k
 php-pecl-imagick                                                                           x86_64                                                       3.8.0-1.el10_0                                                               ol10_u0_developer_EPEL                                                       163 k
 php-pecl-zip                                                                               x86_64                                                       1.22.3-5.el10                                                                ol10_appstream                                                                82 k
Installing dependencies:
 ImageMagick-libs                                                                           x86_64                                                       1:7.1.1.43-1.el10_0                                                          ol10_u0_developer_EPEL                                                       2.7 M
 LibRaw                                                                                     x86_64                                                       0.21.3-1.el10_0                                                              ol10_u0_developer_EPEL                                                       430 k
 adobe-mappings-cmap                                                                        noarch                                                       20230622-5.el10                                                              ol10_appstream                                                               2.3 M
 adobe-mappings-cmap-deprecated                                                             noarch                                                       20230622-5.el10                                                              ol10_appstream                                                               128 k
 adobe-mappings-pdf                                                                         noarch                                                       20190401-9.el10                                                              ol10_appstream                                                               728 k
 cairo                                                                                      x86_64                                                       1.18.2-2.el10                                                                ol10_appstream                                                               725 k
 cairo-gobject                                                                              x86_64                                                       1.18.2-2.el10                                                                ol10_appstream                                                                17 k
 cups-filesystem                                                                            noarch                                                       1:2.4.10-11.el10                                                             ol10_baseos_latest                                                            13 k
 cups-libs                                                                                  x86_64                                                       1:2.4.10-11.el10                                                             ol10_baseos_latest                                                           266 k
 fftw-libs-double                                                                           x86_64                                                       3.3.10-15.el10                                                               ol10_appstream                                                               1.1 M
 fontconfig                                                                                 x86_64                                                       2.15.0-7.el10                                                                ol10_appstream                                                               333 k
 fribidi                                                                                    x86_64                                                       1.0.14-4.el10                                                                ol10_appstream                                                               101 k
 gd                                                                                         x86_64                                                       2.3.3-20.el10_0                                                              ol10_appstream                                                               149 k
 gdk-pixbuf2                                                                                x86_64                                                       2.42.12-4.el10_0                                                             ol10_appstream                                                               605 k
 giflib                                                                                     x86_64                                                       5.2.1-22.el10                                                                ol10_appstream                                                                57 k
 google-droid-sans-fonts                                                                    noarch                                                       20200215-22.el10                                                             ol10_appstream                                                               2.7 M
 gpgmepp                                                                                    x86_64                                                       1.23.2-6.el10                                                                ol10_appstream                                                               139 k
 graphviz                                                                                   x86_64                                                       9.0.0-15.el10                                                                ol10_appstream                                                               1.6 M
 highway                                                                                    x86_64                                                       1.2.0-7.el10_0                                                               ol10_u0_developer_EPEL                                                       455 k
 imath                                                                                      x86_64                                                       3.1.10-4.el10                                                                ol10_appstream                                                               104 k
 jasper-libs                                                                                x86_64                                                       4.1.0-5.el10                                                                 ol10_appstream                                                               166 k
 jbig2dec-libs                                                                              x86_64                                                       0.20-7.el10                                                                  ol10_appstream                                                                79 k
 jbigkit-libs                                                                               x86_64                                                       2.1-31.el10                                                                  ol10_appstream                                                                59 k
 lcms2                                                                                      x86_64                                                       2.16-6.el10                                                                  ol10_appstream                                                               188 k
 libXft                                                                                     x86_64                                                       2.3.8-8.el10                                                                 ol10_appstream                                                                77 k
 libXpm                                                                                     x86_64                                                       3.5.17-5.el10                                                                ol10_appstream                                                                70 k
 libXrender                                                                                 x86_64                                                       0.9.11-8.el10                                                                ol10_appstream                                                                28 k
 libdatrie                                                                                  x86_64                                                       0.2.13-11.el10                                                               ol10_appstream                                                                32 k
 libgs                                                                                      x86_64                                                       10.02.1-16.el10_0                                                            ol10_appstream                                                               3.7 M
 libijs                                                                                     x86_64                                                       0.35-24.el10                                                                 ol10_appstream                                                                29 k
 libjpeg-turbo                                                                              x86_64                                                       3.0.2-4.el10                                                                 ol10_appstream                                                               256 k
 libjxl                                                                                     x86_64                                                       1:0.10.4-1.el10_0                                                            ol10_u0_developer_EPEL                                                       1.2 M
 liblerc                                                                                    x86_64                                                       4.0.0-8.el10                                                                 ol10_appstream                                                               221 k
 liblqr-1                                                                                   x86_64                                                       0.4.2-26.el10_0                                                              ol10_u0_developer_EPEL                                                        57 k
 libpaper                                                                                   x86_64                                                       1:2.1.1-7.el10                                                               ol10_appstream                                                                32 k
 libraqm                                                                                    x86_64                                                       0.10.1-1.el10_0                                                              ol10_u0_developer_EPEL                                                        25 k
 librsvg2                                                                                   x86_64                                                       2.57.1-9.el10                                                                ol10_appstream                                                               1.5 M
 libthai                                                                                    x86_64                                                       0.1.29-10.el10                                                               ol10_appstream                                                               219 k
 libtiff                                                                                    x86_64                                                       4.6.0-6.el10_0                                                               ol10_appstream                                                               239 k
 libtool-ltdl                                                                               x86_64                                                       2.4.7-13.el10                                                                ol10_appstream                                                                35 k
 libwebp                                                                                    x86_64                                                       1.3.2-8.el10                                                                 ol10_appstream                                                               298 k
 libwmf-lite                                                                                x86_64                                                       0.2.13-6.el10_0                                                              ol10_u0_developer_EPEL                                                        87 k
 libzip                                                                                     x86_64                                                       1.10.1-5.el10                                                                ol10_appstream                                                                67 k
 openexr-libs                                                                               x86_64                                                       3.1.10-8.el10                                                                ol10_appstream                                                               1.1 M
 openjpeg2                                                                                  x86_64                                                       2.5.2-4.el10_0.1                                                             ol10_appstream                                                               203 k
 pango                                                                                      x86_64                                                       1.54.0-3.el10                                                                ol10_appstream                                                               367 k
 pixman                                                                                     x86_64                                                       0.43.4-2.el10                                                                ol10_appstream                                                               286 k
 poppler                                                                                    x86_64                                                       24.02.0-6.el10                                                               ol10_appstream                                                               1.2 M
 poppler-data                                                                               noarch                                                       0.4.11-9.el10                                                                ol10_appstream                                                               2.2 M
 poppler-glib                                                                               x86_64                                                       24.02.0-6.el10                                                               ol10_appstream                                                               191 k
 rsvg-pixbuf-loader                                                                         x86_64                                                       2.57.1-9.el10                                                                ol10_appstream                                                                15 k
 urw-base35-bookman-fonts                                                                   noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               861 k
 urw-base35-c059-fonts                                                                      noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               888 k
 urw-base35-d050000l-fonts                                                                  noarch                                                       20200910-21.el10                                                             ol10_appstream                                                                80 k
 urw-base35-fonts                                                                           noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               9.5 k
 urw-base35-fonts-common                                                                    noarch                                                       20200910-21.el10                                                             ol10_appstream                                                                20 k
 urw-base35-gothic-fonts                                                                    noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               656 k
 urw-base35-nimbus-mono-ps-fonts                                                            noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               808 k
 urw-base35-nimbus-roman-fonts                                                              noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               870 k
 urw-base35-nimbus-sans-fonts                                                               noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               1.3 M
 urw-base35-p052-fonts                                                                      noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               987 k
 urw-base35-standard-symbols-ps-fonts                                                       noarch                                                       20200910-21.el10                                                             ol10_appstream                                                                45 k
 urw-base35-z003-fonts                                                                      noarch                                                       20200910-21.el10                                                             ol10_appstream                                                               280 k
 xml-common                                                                                 noarch                                                       0.6.3-65.el10                                                                ol10_appstream                                                                42 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  67 Packages

Total download size: 36 M
Installed size: 128 M
Downloading Packages:
<略>
Installed:
  ImageMagick-libs-1:7.1.1.43-1.el10_0.x86_64                   LibRaw-0.21.3-1.el10_0.x86_64                               adobe-mappings-cmap-20230622-5.el10.noarch                 adobe-mappings-cmap-deprecated-20230622-5.el10.noarch       adobe-mappings-pdf-20190401-9.el10.noarch                         
  cairo-1.18.2-2.el10.x86_64                                    cairo-gobject-1.18.2-2.el10.x86_64                          cups-filesystem-1:2.4.10-11.el10.noarch                    cups-libs-1:2.4.10-11.el10.x86_64                           fftw-libs-double-3.3.10-15.el10.x86_64                            
  fontconfig-2.15.0-7.el10.x86_64                               fribidi-1.0.14-4.el10.x86_64                                gd-2.3.3-20.el10_0.x86_64                                  gdk-pixbuf2-2.42.12-4.el10_0.x86_64                         giflib-5.2.1-22.el10.x86_64                                       
  google-droid-sans-fonts-20200215-22.el10.noarch               gpgmepp-1.23.2-6.el10.x86_64                                graphviz-9.0.0-15.el10.x86_64                              highway-1.2.0-7.el10_0.x86_64                               imath-3.1.10-4.el10.x86_64                                        
  jasper-libs-4.1.0-5.el10.x86_64                               jbig2dec-libs-0.20-7.el10.x86_64                            jbigkit-libs-2.1-31.el10.x86_64                            lcms2-2.16-6.el10.x86_64                                    libXft-2.3.8-8.el10.x86_64                                        
  libXpm-3.5.17-5.el10.x86_64                                   libXrender-0.9.11-8.el10.x86_64                             libdatrie-0.2.13-11.el10.x86_64                            libgs-10.02.1-16.el10_0.x86_64                              libijs-0.35-24.el10.x86_64                                        
  libjpeg-turbo-3.0.2-4.el10.x86_64                             libjxl-1:0.10.4-1.el10_0.x86_64                             liblerc-4.0.0-8.el10.x86_64                                liblqr-1-0.4.2-26.el10_0.x86_64                             libpaper-1:2.1.1-7.el10.x86_64                                    
  libraqm-0.10.1-1.el10_0.x86_64                                librsvg2-2.57.1-9.el10.x86_64                               libthai-0.1.29-10.el10.x86_64                              libtiff-4.6.0-6.el10_0.x86_64                               libtool-ltdl-2.4.7-13.el10.x86_64                                 
  libwebp-1.3.2-8.el10.x86_64                                   libwmf-lite-0.2.13-6.el10_0.x86_64                          libzip-1.10.1-5.el10.x86_64                                openexr-libs-3.1.10-8.el10.x86_64                           openjpeg2-2.5.2-4.el10_0.1.x86_64                                 
  pango-1.54.0-3.el10.x86_64                                    php-intl-8.3.19-1.el10_0.x86_64                             php-pecl-imagick-3.8.0-1.el10_0.x86_64                     php-pecl-zip-1.22.3-5.el10.x86_64                           pixman-0.43.4-2.el10.x86_64                                       
  poppler-24.02.0-6.el10.x86_64                                 poppler-data-0.4.11-9.el10.noarch                           poppler-glib-24.02.0-6.el10.x86_64                         rsvg-pixbuf-loader-2.57.1-9.el10.x86_64                     urw-base35-bookman-fonts-20200910-21.el10.noarch                  
  urw-base35-c059-fonts-20200910-21.el10.noarch                 urw-base35-d050000l-fonts-20200910-21.el10.noarch           urw-base35-fonts-20200910-21.el10.noarch                   urw-base35-fonts-common-20200910-21.el10.noarch             urw-base35-gothic-fonts-20200910-21.el10.noarch                   
  urw-base35-nimbus-mono-ps-fonts-20200910-21.el10.noarch       urw-base35-nimbus-roman-fonts-20200910-21.el10.noarch       urw-base35-nimbus-sans-fonts-20200910-21.el10.noarch       urw-base35-p052-fonts-20200910-21.el10.noarch               urw-base35-standard-symbols-ps-fonts-20200910-21.el10.noarch      
  urw-base35-z003-fonts-20200910-21.el10.noarch                 xml-common-0.6.3-65.el10.noarch                            

Complete!
[opc@oci10 ~]$ 

これで、サイトヘルスステータスのパッケージ関連のメッセージは消えた。

手順12: WordPressの.htaccess有効化

/var/www/html/wordpress/.htaccess が作成されているが、Oracle Linux 10のhttpd標準設定ではこれを読み込むようにはなっていない。

これが有効になっていないと、パーマリンク設定を「基本」から変えた場合に個別記事にアクセスできなくなる。

/etc/httpd/conf.d/wordpress.conf にファイルを作って設定する。

[opc@oci10 ~]$ sudo vi /etc/httpd/conf.d/wordpress.conf
[opc@oci10 ~]$ cat /etc/httpd/conf.d/wordpress.conf 
&lt;Directory /var/www/html/wordpress/>
 Allowoverride All
&lt;/Directory>
[opc@oci10 ~]$ sudo systemctl restart httpd
[opc@oci10 ~]$ 

手順13: OS自動更新の設定

メンテナンスがめんどくさくなって忘れる可能性があるので、Oracle Linux 10の自動更新設定を実施。

dnf-automatic パッケージをインストールします。

[opc@oci10 ~]$ sudo dnf install dnf-automatic -y
Last metadata expiration check: 1:14:05 ago on Tue 09 Sep 2025 01:42:02 PM JST.
Dependencies resolved.
=========================================================================================================================================================================================================================================================================================================================
 Package                                                                    Architecture                                                        Version                                                                            Repository                                                                       Size
=========================================================================================================================================================================================================================================================================================================================
Installing:
 dnf-automatic                                                              noarch                                                              4.20.0-12.0.1.el10_0                                                               ol10_baseos_latest                                                              191 k

Transaction Summary
=========================================================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 191 k
Installed size: 77 k
Downloading Packages:
<略>
Installed:
  dnf-automatic-4.20.0-12.0.1.el10_0.noarch                                                                                                                                                                                                                                                                              

Complete!
[opc@oci10 ~]$ 

/etc/dnf/automatic.conf 内の「apply_updates = no」を「apply_updates = yes」に変更

[opc@oci10 ~]$ sudo vi /etc/dnf/automatic.conf 
[opc@oci10 ~]$ cat /etc/dnf/automatic.conf 
[commands]
#  What kind of upgrade to perform:
# default                            = all available upgrades
# security                           = only the security upgrades
upgrade_type = default
random_sleep = 0

# Maximum time in seconds to wait until the system is on-line and able to
# connect to remote repositories.
network_online_timeout = 60

# To just receive updates use dnf-automatic-notifyonly.timer

# Whether updates should be downloaded when they are available, by
# dnf-automatic.timer. notifyonly.timer, download.timer and
# install.timer override this setting.
download_updates = yes

# Whether updates should be applied when they are available, by
# dnf-automatic.timer. notifyonly.timer, download.timer and
# install.timer override this setting.
apply_updates = yes

# When the system should reboot following upgrades:
# never                              = don't reboot after upgrades
# when-changed                       = reboot after any changes
# when-needed                        = reboot when necessary to apply changes
reboot = never

# The command that is run to trigger a system reboot.
reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"


[emitters]
# Name to use for this system in messages that are emitted.  Default is the
# hostname.
# system_name = my-host

# How to send messages.  Valid options are stdio, email and motd.  If
# emit_via includes stdio, messages will be sent to stdout; this is useful
# to have cron send the messages.  If emit_via includes email, this
# program will send email itself according to the configured options.
# If emit_via includes motd, /etc/motd file will have the messages. if
# emit_via includes command_email, then messages will be send via a shell
# command compatible with sendmail.
# Default is email,stdio.
# If emit_via is None or left blank, no messages will be sent.
emit_via = stdio


[email]
# The address to send email messages from.
email_from = root@example.com

# List of addresses to send messages to.
email_to = root

# Name of the host to connect to to send email messages.
email_host = localhost

# Port number to connect to at the email host.
email_port = 25

# Use TLS or STARTTLS to connect to the email host.
email_tls = no


[command]
# The shell command to execute. This is a Python format string, as used in
# str.format(). The format function will pass a shell-quoted argument called
# `body`.
# command_format = "cat"

# The contents of stdin to pass to the command. It is a format string with the
# same arguments as `command_format`.
# stdin_format = "{body}"


[command_email]
# The shell command to use to send email. This is a Python format string,
# as used in str.format(). The format function will pass shell-quoted arguments
# called body, subject, email_from, email_to.
# command_format = "mail -Ssendwait -s {subject} -r {email_from} {email_to}"

# The contents of stdin to pass to the command. It is a format string with the
# same arguments as `command_format`.
# stdin_format = "{body}"

# The address to send email messages from.
email_from = root@example.com

# List of addresses to send messages to.
email_to = root


[base]
# This section overrides dnf.conf

# Use this to filter DNF core messages
debuglevel = 1
[opc@oci10 ~]$

そしてdnf-automatic.timerを有効化し、開始します。

$ sudo systemctl enable dnf-automatic.timer
Created symlink /etc/systemd/system/timers.target.wants/dnf-automatic.timer → /usr/lib/systemd/system/dnf-automatic.timer.
$ sudo systemctl status dnf-automatic
○ dnf-automatic.service - dnf automatic
     Loaded: loaded (/usr/lib/systemd/system/dnf-automatic.service; static)
     Active: inactive (dead)
TriggeredBy: ○ dnf-automatic.timer
$ sudo systemctl start dnf-automatic.timer
$ sudo systemctl status dnf-automatic.timer
● dnf-automatic.timer - dnf-automatic timer
     Loaded: loaded (/usr/lib/systemd/system/dnf-automatic.timer; enabled; pres>
     Active: active (waiting) since Tue 2023-09-12 13:11:00 JST; 5s ago
      Until: Tue 2023-09-12 13:11:00 JST; 5s ago
    Trigger: Wed 2023-09-13 06:44:33 JST; 17h left
   Triggers: ● dnf-automatic.service
Sep 12 13:11:00 ホスト名 systemd[1]: Started dnf-automatic timer.
$

手順14 SSL証明書の自動更新設定

dehydratedによるLet’s Encrypt SSL証明書を自動的に更新する設定を行う。

更新した場合だけ、httpdを再起動させたいので /etc/dehydrated/hook.sh の deploy_cert()関数定義のところで「systemctl restart httpd」を追加する

ただ、せっかく /etc/dehydrated/hook.d/ というディレクトリがあり、/etc/dehydrated/hook.shの最後の方で /etc/dehydrated/hook.d/*.sh を読み込んでいるという処理をしているので、そちらで設定を独立させたい。

ということで /etc/dehydrated/hook.d/httpd.sh を作成し、以下を記載

#!/bin/bash

case "$1" in
    "deploy_cert")
        /bin/systemctl restart httpd
    ;;
esac

exit 0

強制的にSSL証明書再発行を実行「sudo dehydrated –cron –force」

[opc@oci10 ~]$ sudo dehydrated --cron --force
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/conf.d/local.sh
Processing <ホスト名>
 + Checking expire date of existing cert...
 + Valid till Dec  9 01:51:44 2025 GMT (Longer than 30 days). Ignoring because renew was forced!
 + Signing domains...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
 + Handling authorization for <ホスト名>
 + Found valid authorization for <ホスト名>
 + 0 pending challenge(s)
 + Requesting certificate...
Warning: Will read cert request from stdin since no -in option is given
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Done!
 + Running automatic cleanup
Moving unused file to archive directory: <ホスト名>/cert-1757472608.csr
Moving unused file to archive directory: <ホスト名>/cert-1757472608.pem
Moving unused file to archive directory: <ホスト名>/chain-1757472608.pem
Moving unused file to archive directory: <ホスト名>/fullchain-1757472608.pem
[opc@oci10 ~]$

ちゃんとhttpdが再起動しているかを「systemctl status httpd」を実行して確認

下記の「Active:」のsinceの後ろの時刻がつい最近であることを確認する

[opc@oci10 ~]$ systemctl status httpd
● httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
    Drop-In: /etc/systemd/system/httpd.service.d
             └─php-fpm.conf
     Active: active (running) since Wed 2025-09-10 11:51:21 JST; 7s ago
 Invocation: cae425cfbaae4ba68fa746588b2dde05
       Docs: man:httpd.service(8)
   Main PID: 110426 (httpd)
     Status: "Started, listening on: port 443, port 80"
      Tasks: 177 (limit: 5249)
     Memory: 14.6M (peak: 14.8M)
        CPU: 216ms
     CGroup: /system.slice/httpd.service
             ├─110426 /usr/sbin/httpd -DFOREGROUND
             ├─110427 /usr/sbin/httpd -DFOREGROUND
             ├─110428 /usr/sbin/httpd -DFOREGROUND
             ├─110429 /usr/sbin/httpd -DFOREGROUND
             └─110430 /usr/sbin/httpd -DFOREGROUND

Sep 10 11:51:21 oci10 systemd[1]: Starting httpd.service - The Apache HTTP Server...
Sep 10 11:51:21 oci10 (httpd)[110426]: httpd.service: Referenced but unset environment variable evaluates to an empty string: OPTIONS
Sep 10 11:51:21 oci10 systemd[1]: Started httpd.service - The Apache HTTP Server.
Sep 10 11:51:21 oci10 httpd[110426]: Server configured, listening on: port 443, port 80
[opc@oci10 ~]$ 

次にdehydratedが定期的に実行される設定になっているかを「systemctl status dehydrated.timer」を実行して確認する

[opc@oci10 ~]$ systemctl status dehydrated.timer
● dehydrated.timer - dehydrated client for signing certificates with an ACME server
     Loaded: loaded (/usr/lib/systemd/system/dehydrated.timer; enabled; preset: enabled)
     Active: active (waiting) since Tue 2025-09-09 14:07:18 JST; 21h ago
 Invocation: d81b66fc4dd943368689b90f756ab156
    Trigger: Thu 2025-09-11 01:41:37 JST; 13h left
   Triggers: ● dehydrated.service

Sep 09 14:07:18 oci10 systemd[1]: Started dehydrated.timer - dehydrated client for signing certificates with an ACME server.
[opc@oci10 ~]$ 

Oracle Linux 10においては標準でenabledとなっているので、自動的に実行されるようになっていた。

(dehydrated.service は disable だが、これはdehydrated.timer から起動されるやつなのでそのままで良い)


トラブル対応手順1: python3-pyOpenSSLのconflict問題

2025/09/19時点ではdnf updateが失敗する。

[opc@oci10 ~]$ sudo dnf update -y
Last metadata expiration check: 1:18:42 ago on Fri 19 Sep 2025 12:26:32 PM JST.
Error: 
 Problem: package python3-oci-sdk-2.159.0-1.el10.x86_64 from ol10_oci_included requires (python3.12dist(pyopenssl) &lt; 25~~ with python3.12dist(pyopenssl) >= 17.5), but none of the providers can be installed
  - cannot install both python3-pyOpenSSL-25.0.0-1.el10_0.noarch from ol10_u0_developer_EPEL and python3-pyOpenSSL-24.2.1-1.0.1.el10.noarch from @System
  - cannot install both python3-pyOpenSSL-25.0.0-1.el10_0.noarch from ol10_u0_developer_EPEL and python3-pyOpenSSL-24.2.1-1.el10_0.noarch from ol10_u0_developer_EPEL
  - cannot install both python3-pyOpenSSL-24.2.1-1.0.1.el10.noarch from ol10_appstream and python3-pyOpenSSL-25.0.0-1.el10_0.noarch from ol10_u0_developer_EPEL
  - cannot install the best update candidate for package python3-pyOpenSSL-24.2.1-1.0.1.el10.noarch
  - cannot install the best update candidate for package python3-oci-sdk-2.158.0-1.el10.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[opc@oci10 ~]$

python3-pyOpenSSLがOracle Linux 10標準提供の python3-pyOpenSSL-24.2.1 系列と、EPEL提供の python3-pyOpenSSL-25.0.0 系列の2種類があるために発生している模様

とりあえず、EPEL側のpython3-pyOpenSSL-25.0.0 を使用しないようにしたところ、問題はなさそう。

設定は /etc/yum.repos.d/oracle-epel-ol10.repoに「exclude=python3-pyOpenSSL*」を追加する

[opc@oci10 ~]$ cat /etc/yum.repos.d/oracle-epel-ol10.repo 
[ol10_u0_developer_EPEL]
name=Oracle Linux $releasever.0 EPEL Packages for Development ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL10/0/developer/EPEL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
exclude=python3-pyOpenSSL*
[opc@oci10 ~]$ 

Lifebook U938/S に 32GBメモリを載せてみた

富士通 Lifebook U938/Sに32GBのメモリを載せてみたところ、オンボード4GBと合わせて36GBメモリ認識として使用できるようになった。

今回買ったのはWINTENのSO-DIMM DDR4 3200 32GBです

まあ2枚セットで買ったので、ついでにN95搭載のTRIGKEY にも載せてみて、N95の仕様上は最大メモリーサイズ16GBと書かれているのが突破できていることも確認したりした。

RHEL9のwordpress環境でphpのバージョン警告が出た

AlmaLinux 9環境でwordpressを動かしているのだが下記の「PHPの更新を推奨」という警告が表示された。

(Updraftプラグインを入れているので、余計な文面も入っている)

PHPの更新について詳しくと書かれているリンク先「より高速で安全なサイトを手に入れましょう: 今すぐ PHP を更新

2025/08/14追記 「PHP Compatibility and WordPress Versions」を見ると、PHP 8.3以外のバージョンでもしばらくは大丈夫な模様

RHEL/AlmaLinux/RockyLinux/Oracle Linuxでphp 8.3以降なのはなにかを確認すると、標準状態であればRHEL10からになる。

Red Hat Enterprise Linux 10 動的プログラミング言語のインストールおよび使用第4章 PHP スクリプト言語の使用

RHEL9ではRHEL9.6からmysql 8.4とともにphp 8.3の提供も追加されている。

Red Hat Enterprise Linux 9 9.6 リリースノート3.12. 動的プログラミング言語、Web サーバー、およびデータベースサーバー

RHEL8については、もう新しいリリースはでないので、公式としてphp 8.3がリリースされることはないので3rdパーティーのレポジトリを使う必要があるが、前記の互換性記述を見る限りではPHP 8.2でもしばらくは大丈夫である模様。

RHEL7時代は、Oracle Linuxの「PHP Packages for Oracle Linux」にてRHELでは配布しない新しめのphpも配布してくれていたのですが、いまのところその様子はないので、php 8.2でやる感じか?


RHEL9系でのphp8.3導入

RHEL9 / AlmaLinux 9環境でphp 8.3を導入できるのは9.6からなので、少なくともそのバージョンへはアップデートを終わらせておく。

そのあと、まずはモジュールとして選択できることを「dnf module list php」を実行して確認する

$ dnf module list php
メタデータの期限切れの最終確認: 0:00:10 前の 2025年07月16日 09時55分14秒 に実施しました。
AlmaLinux 9 - AppStream
Name             Stream             Profiles                              Summary
php              8.1                common [d], devel, minimal            PHP scripting language
php              8.2                common [d], devel, minimal            PHP scripting language
php              8.3                common [d], devel, minimal            PHP scripting language

ヒント: [d]efault, [e]nabled, [x]disabled, [i]nstalled
$ php -v
PHP 8.0.30 (cli) (built: May 13 2025 19:33:03) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
$

新規インストールの場合は「dnf install @php:8.3」とバージョンを指定してインストールする

$ sudo dnf install @php:8.3

すでにphpがインストール済みの場合は「dnf module switch-to php:8.3」でバージョンを切り替える(11.5. 後のストリームへの切り替え)

$ sudo dnf module switch-to php:8.3

インストール終了後、バージョンを確認

$ dnf module list php
メタデータの期限切れの最終確認: 0:08:21 前の 2025年07月16日 09時55分14秒 に実施しました。
AlmaLinux 9 - AppStream
Name             Stream             Profiles                              Summary
php              8.1                common [d], devel, minimal            PHP scripting language
php              8.2                common [d], devel, minimal            PHP scripting language
php              8.3 [e]            common [d], devel, minimal            PHP scripting language

ヒント: [d]efault, [e]nabled, [x]disabled, [i]nstalled
$

php 8.3の横に[e]というマークがついて、enabledになった、という表示に切り替わっていることが確認できます。

php -vでバージョンを確認すると 8.3.19 であることも確認できました。

$ php -v
PHP 8.3.19 (cli) (built: Mar 12 2025 13:10:27) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.19, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.19, Copyright (c), by Zend Technologies
$


トラブル事例

ちなみに・・・うちの環境ではdnf module switch-to php:8.3は素直に実行されてくれませんでした。

$ sudo dnf module switch-to php:8.3
メタデータの期限切れの最終確認: 2:38:13 前の 2025年07月16日 07時18分53秒 に実施しました。
エラー:
 問題: インストール済パッケージの問題 php-pecl-imagick-3.7.0-1.el9.x86_64
  - package php-pecl-imagick-3.7.0-1.el9.x86_64 from @System requires php(api) = 20200930-64, but none of the providers can be installed
  - package php-pecl-imagick-3.7.0-1.el9.x86_64 from @System requires php(zend-abi) = 20200930-64, but none of the providers can be installed
  - package php-pecl-imagick-3.7.0-1.el9.x86_64 from epel requires php(api) = 20200930-64, but none of the providers can be installed
  - package php-pecl-imagick-3.7.0-1.el9.x86_64 from epel requires php(zend-abi) = 20200930-64, but none of the providers can be installed
  - php-common-8.0.30-3.el9_6.x86_64 from @System  does not belong to a distupgrade repository
  - package php-common-8.0.30-3.el9_6.x86_64 from appstream is filtered out by modular filtering
(インストール不可のパッケージをスキップするには、'--skip-broken' を追加してみてください または、'--nobest' を追加して、最適候補のパッケージのみを使用しないでください)
$

理由はepelレポジトリからインストールしたphp-pecl-imagick パッケージ

$ dnf info php-pecl-imagick
メタデータの期限切れの最終確認: 0:02:32 前の 2025年07月16日 09時55分14秒 に実施しました。
インストール済みパッケージ
名前         : php-pecl-imagick
バージョン   : 3.7.0
リリース     : 1.el9
Arch         : x86_64
サイズ       : 554 k
ソース       : php-pecl-imagick-3.7.0-1.el9.src.rpm
リポジトリー : @System
repo から    : epel
概要         : Provides a wrapper to the ImageMagick library
URL          : https://pecl.php.net/package/imagick
ライセンス   : PHP
説明         : Imagick is a native php extension to create and modify images using the
             : ImageMagick API.
$

アンインストールをしてみたところ関係するパッケージが多くてびっくりしました。

$ sudo dnf remove php-pecl-imagick
依存関係が解決しました。
===========================================================================================================
 パッケージ                                Arch     バージョン                          リポジトリー サイズ
===========================================================================================================
削除中:
 php-pecl-imagick                          x86_64   3.7.0-1.el9                         @epel        554 k
未使用の依存関係の削除:
 ImageMagick-libs                          x86_64   6.9.13.25-1.el9                     @epel        8.3 M
 LibRaw                                    x86_64   0.21.1-1.el9                        @appstream   2.4 M
 ModemManager-glib                         x86_64   1.20.2-1.el9                        @baseos      1.5 M
 abattis-cantarell-fonts                   noarch   0.301-4.el9                         @appstream   705 k
 adobe-mappings-cmap                       noarch   20171205-12.el9                     @appstream    13 M
 adobe-mappings-cmap-deprecated            noarch   20171205-12.el9                     @appstream   583 k
 adobe-mappings-pdf                        noarch   20180407-10.el9                     @appstream   4.2 M
 adobe-source-code-pro-fonts               noarch   2.030.1.050-12.el9.1                @baseos      1.8 M
 adwaita-cursor-theme                      noarch   40.1.1-3.el9                        @appstream    12 M
 adwaita-icon-theme                        noarch   40.1.1-3.el9                        @appstream    11 M
 at-spi2-atk                               x86_64   2.38.0-4.el9                        @appstream   272 k
 at-spi2-core                              x86_64   2.40.3-1.el9                        @appstream   516 k
 atk                                       x86_64   2.36.0-5.el9                        @appstream   1.2 M
 avahi-glib                                x86_64   0.8-22.el9_6                        @appstream    19 k
 avahi-libs                                x86_64   0.8-22.el9_6                        @baseos      173 k
 bluez-libs                                x86_64   5.72-4.el9                          @baseos      214 k
 bubblewrap                                x86_64   0.4.1-8.el9_5                       @baseos      101 k
 cairo                                     x86_64   1.17.4-7.el9                        @appstream   1.6 M
 cairo-gobject                             x86_64   1.17.4-7.el9                        @appstream    43 k
 colord-libs                               x86_64   1.4.5-6.el9_6                       @appstream   830 k
 composefs-libs                            x86_64   1.0.8-1.el9                         @appstream   143 k
 cups-libs                                 x86_64   1:2.3.3op2-33.el9                   @baseos      670 k
 dconf                                     x86_64   0.40.0-6.el9                        @appstream   305 k
 dejavu-sans-fonts                         noarch   2.37-18.el9                         @baseos      5.7 M
 exempi                                    x86_64   2.6.0-0.2.20211007gite23c213.el9    @appstream   1.3 M
 exiv2                                     x86_64   0.27.5-2.el9                        @appstream   4.4 M
 exiv2-libs                                x86_64   0.27.5-2.el9                        @appstream   2.7 M
 fdk-aac-free                              x86_64   2.0.0-8.el9                         @appstream   588 k
 flac-libs                                 x86_64   1.3.3-10.el9_2.1                    @appstream   549 k
 flatpak                                   x86_64   1.12.9-4.el9_6                      @appstream   7.7 M
 flatpak-selinux                           noarch   1.12.9-4.el9_6                      @appstream    13 k
 flatpak-session-helper                    x86_64   1.12.9-4.el9_6                      @appstream   210 k
 fontconfig                                x86_64   2.14.0-2.el9_1                      @appstream   818 k
 fonts-filesystem                          noarch   1:2.0.5-7.el9.1                     @baseos        0
 fribidi                                   x86_64   1.0.10-6.el9.2                      @appstream   339 k
 fuse                                      x86_64   2.9.9-17.el9                        @baseos      214 k
 fuse-common                               x86_64   3.10.2-9.el9                        @baseos       38
 gd                                        x86_64   2.3.2-3.el9                         @appstream   412 k
 gdk-pixbuf2                               x86_64   2.42.6-4.el9_4                      @appstream   2.5 M
 gdk-pixbuf2-modules                       x86_64   2.42.6-4.el9_4                      @appstream   265 k
 geoclue2                                  x86_64   2.6.0-8.el9_6.1                     @appstream   359 k
 giflib                                    x86_64   5.2.1-9.el9                         @appstream   106 k
 glib-networking                           x86_64   2.68.3-3.el9                        @baseos      640 k
 google-droid-sans-fonts                   noarch   20200215-11.el9.2                   @appstream   6.3 M
 graphene                                  x86_64   1.10.6-2.el9                        @appstream   167 k
 graphviz                                  x86_64   2.44.0-26.el9                       @appstream    12 M
 gsettings-desktop-schemas                 x86_64   40.0-6.el9                          @baseos      4.5 M
 gsm                                       x86_64   1.0.19-6.el9                        @appstream    64 k
 gstreamer1                                x86_64   1.22.12-3.el9                       @appstream   4.8 M
 gstreamer1-plugins-base                   x86_64   1.22.12-4.el9                       @appstream   7.3 M
 gtk-update-icon-cache                     x86_64   3.24.31-5.el9                       @appstream    66 k
 gtk2                                      x86_64   2.24.33-8.el9                       @appstream    13 M
 gtk3                                      x86_64   3.24.31-5.el9                       @appstream    20 M
 hicolor-icon-theme                        noarch   0.17-13.el9                         @appstream    72 k
 imath                                     x86_64   3.1.2-1.el9                         @appstream   363 k
 iso-codes                                 noarch   4.6.0-3.el9                         @appstream    19 M
 jasper-libs                               x86_64   2.0.28-3.el9                        @appstream   326 k
 jbig2dec-libs                             x86_64   0.19-7.el9                          @appstream   164 k
 jbigkit-libs                              x86_64   2.1-23.el9                          @appstream   114 k
 langpacks-core-font-en                    noarch   3.0-16.el9                          @appstream   351
 lcms2                                     x86_64   2.12-3.el9                          @appstream   399 k
 libICE                                    x86_64   1.0.10-8.el9                        @appstream   171 k
 libSM                                     x86_64   1.2.3-10.el9                        @appstream    93 k
 libX11                                    x86_64   1.7.0-11.el9                        @appstream   1.3 M
 libX11-common                             noarch   1.7.0-11.el9                        @appstream   1.3 M
 libX11-xcb                                x86_64   1.7.0-11.el9                        @appstream    15 k
 libXau                                    x86_64   1.0.9-8.el9                         @appstream    63 k
 libXaw                                    x86_64   1.0.13-19.el9                       @appstream   498 k
 libXcomposite                             x86_64   0.4.5-7.el9                         @appstream    41 k
 libXcursor                                x86_64   1.2.0-7.el9                         @appstream    50 k
 libXdamage                                x86_64   1.1.5-7.el9                         @appstream    36 k
 libXext                                   x86_64   1.3.4-8.el9                         @appstream    93 k
 libXfixes                                 x86_64   5.0.3-16.el9                        @appstream    35 k
 libXft                                    x86_64   2.3.3-8.el9                         @appstream   133 k
 libXi                                     x86_64   1.7.10-8.el9                        @appstream    73 k
 libXinerama                               x86_64   1.1.4-10.el9                        @appstream    19 k
 libXmu                                    x86_64   1.1.3-8.el9                         @appstream   184 k
 libXpm                                    x86_64   3.5.13-10.el9                       @appstream   126 k
 libXrandr                                 x86_64   1.5.2-8.el9                         @appstream    52 k
 libXrender                                x86_64   0.9.10-16.el9                       @appstream    50 k
 libXt                                     x86_64   1.2.0-6.el9                         @appstream   443 k
 libXtst                                   x86_64   1.2.3-16.el9                        @appstream    38 k
 libXv                                     x86_64   1.0.11-16.el9                       @appstream    26 k
 libXxf86vm                                x86_64   1.1.4-18.el9                        @appstream    26 k
 libappstream-glib                         x86_64   0.7.18-5.el9_4                      @appstream   1.4 M
 libasyncns                                x86_64   0.8-22.el9                          @appstream    59 k
 libatomic                                 x86_64   11.5.0-5.el9_5.alma.1               @baseos       29 k
 libcanberra                               x86_64   0.30-27.el9                         @appstream   281 k
 libcanberra-gtk2                          x86_64   0.30-27.el9                         @appstream    54 k
 libcanberra-gtk3                          x86_64   0.30-27.el9                         @appstream    74 k
 libdrm                                    x86_64   2.4.123-2.el9                       @appstream   407 k
 libepoxy                                  x86_64   1.5.5-4.el9                         @appstream   1.2 M
 libexif                                   x86_64   0.6.22-6.el9                        @appstream   2.3 M
 libfontenc                                x86_64   1.1.3-17.el9                        @appstream    63 k
 libgexiv2                                 x86_64   0.12.3-1.el9                        @appstream   225 k
 libglvnd                                  x86_64   1:1.3.4-1.el9                       @appstream   778 k
 libglvnd-egl                              x86_64   1:1.3.4-1.el9                       @appstream    69 k
 libglvnd-glx                              x86_64   1:1.3.4-1.el9                       @appstream   678 k
 libgs                                     x86_64   9.54.0-19.el9_6                     @appstream    19 M
 libgsf                                    x86_64   1.14.47-5.el9                       @appstream   941 k
 libgxps                                   x86_64   0.3.2-3.el9                         @appstream   193 k
 libijs                                    x86_64   0.35-15.el9                         @appstream    66 k
 libiptcdata                               x86_64   1.0.5-10.el9                        @appstream   172 k
 libjpeg-turbo                             x86_64   2.0.90-7.el9                        @appstream   633 k
 libldac                                   x86_64   2.0.2.3-10.el9                      @appstream    79 k
 liblqr-1                                  x86_64   0.4.2-19.el9                        @epel         97 k
 libnotify                                 x86_64   0.7.9-8.el9                         @appstream    99 k
 libogg                                    x86_64   2:1.3.4-6.el9                       @appstream    49 k
 libosinfo                                 x86_64   1.10.0-1.el9                        @appstream   1.2 M
 libpaper                                  x86_64   1.1.28-4.el9                        @appstream    95 k
 libpciaccess                              x86_64   0.16-7.el9                          @baseos       48 k
 libproxy                                  x86_64   0.4.15-35.el9                       @baseos      163 k
 libproxy-webkitgtk4                       x86_64   0.4.15-35.el9                       @appstream    32 k
 libraqm                                   x86_64   0.8.0-1.el9                         @epel         29 k
 librsvg2                                  x86_64   2.50.7-3.el9                        @appstream    10 M
 libsbc                                    x86_64   1.4-9.el9                           @appstream    81 k
 libsndfile                                x86_64   1.0.31-9.el9                        @appstream   521 k
 libsoup                                   x86_64   2.72.0-10.el9_6.2                   @appstream   1.2 M
 libstemmer                                x86_64   0-18.585svn.el9                     @appstream   344 k
 libtheora                                 x86_64   1:1.1.1-31.el9                      @appstream   463 k
 libtiff                                   x86_64   4.4.0-13.el9                        @appstream   573 k
 libtracker-sparql                         x86_64   3.1.2-3.el9_1                       @appstream   1.0 M
 libvorbis                                 x86_64   1:1.3.7-5.el9                       @appstream   903 k
 libwayland-client                         x86_64   1.21.0-1.el9                        @appstream    70 k
 libwayland-cursor                         x86_64   1.21.0-1.el9                        @appstream    37 k
 libwayland-egl                            x86_64   1.21.0-1.el9                        @appstream    16 k
 libwayland-server                         x86_64   1.21.0-1.el9                        @appstream    86 k
 libwebp                                   x86_64   1.2.0-8.el9_3                       @appstream   769 k
 libwmf-lite                               x86_64   0.2.12-10.el9                       @appstream   164 k
 libxcb                                    x86_64   1.13.1-9.el9                        @appstream   1.1 M
 libxkbcommon                              x86_64   1.0.3-4.el9                         @appstream   317 k
 libxshmfence                              x86_64   1.3-10.el9                          @appstream    16 k
 low-memory-monitor                        x86_64   2.1-4.el9                           @appstream    70 k
 mesa-dri-drivers                          x86_64   24.2.8-2.el9_6.alma.1               @appstream    37 M
 mesa-filesystem                           x86_64   24.2.8-2.el9_6.alma.1               @appstream   3.6 k
 mesa-libEGL                               x86_64   24.2.8-2.el9_6.alma.1               @appstream   394 k
 mesa-libGL                                x86_64   24.2.8-2.el9_6.alma.1               @appstream   508 k
 mesa-libgbm                               x86_64   24.2.8-2.el9_6.alma.1               @appstream    64 k
 mesa-libglapi                             x86_64   24.2.8-2.el9_6.alma.1               @appstream   217 k
 mkfontscale                               x86_64   1.2.1-3.el9                         @appstream    54 k
 openexr-libs                              x86_64   3.1.1-3.el9                         @appstream   4.7 M
 openjpeg2                                 x86_64   2.4.0-8.el9                         @appstream   376 k
 opus                                      x86_64   1.3.1-10.el9                        @appstream   355 k
 orc                                       x86_64   0.4.31-8.el9                        @appstream   601 k
 osinfo-db                                 noarch   20250124-2.el9_6.alma.2             @appstream   3.9 M
 osinfo-db-tools                           x86_64   1.10.0-1.el9                        @appstream   177 k
 ostree-libs                               x86_64   2025.1-1.el9                        @appstream   1.1 M
 p11-kit-server                            x86_64   0.25.3-3.el9_5                      @appstream   1.3 M
 pango                                     x86_64   1.48.7-3.el9                        @appstream   878 k
 pipewire                                  x86_64   1.0.1-1.el9                         @appstream   351 k
 pipewire-alsa                             x86_64   1.0.1-1.el9                         @appstream   173 k
 pipewire-jack-audio-connection-kit        x86_64   1.0.1-1.el9                         @appstream    30
 pipewire-jack-audio-connection-kit-libs   x86_64   1.0.1-1.el9                         @appstream   547 k
 pipewire-libs                             x86_64   1.0.1-1.el9                         @appstream   7.6 M
 pipewire-pulseaudio                       x86_64   1.0.1-1.el9                         @appstream   427 k
 pixman                                    x86_64   0.40.0-6.el9_3                      @appstream   694 k
 poppler                                   x86_64   21.01.0-21.el9                      @appstream   3.6 M
 poppler-data                              noarch   0.4.9-9.el9                         @appstream    11 M
 poppler-glib                              x86_64   21.01.0-21.el9                      @appstream   477 k
 pulseaudio-libs                           x86_64   15.0-3.el9                          @appstream   3.2 M
 rtkit                                     x86_64   0.11-29.el9                         @appstream   146 k
 sound-theme-freedesktop                   noarch   0.8-17.el9                          @appstream   460 k
 totem-pl-parser                           x86_64   3.26.6-2.el9                        @appstream   330 k
 tracker                                   x86_64   3.1.2-3.el9_1                       @appstream   2.0 M
 tracker-miners                            x86_64   3.1.2-4.el9_3                       @appstream   4.0 M
 upower                                    x86_64   0.99.13-2.el9                       @appstream   547 k
 urw-base35-bookman-fonts                  noarch   20200910-6.el9                      @appstream   1.4 M
 urw-base35-c059-fonts                     noarch   20200910-6.el9                      @appstream   1.4 M
 urw-base35-d050000l-fonts                 noarch   20200910-6.el9                      @appstream    85 k
 urw-base35-fonts                          noarch   20200910-6.el9                      @appstream   5.3 k
 urw-base35-fonts-common                   noarch   20200910-6.el9                      @appstream    37 k
 urw-base35-gothic-fonts                   noarch   20200910-6.el9                      @appstream   1.2 M
 urw-base35-nimbus-mono-ps-fonts           noarch   20200910-6.el9                      @appstream   1.0 M
 urw-base35-nimbus-roman-fonts             noarch   20200910-6.el9                      @appstream   1.4 M
 urw-base35-nimbus-sans-fonts              noarch   20200910-6.el9                      @appstream   2.4 M
 urw-base35-p052-fonts                     noarch   20200910-6.el9                      @appstream   1.5 M
 urw-base35-standard-symbols-ps-fonts      noarch   20200910-6.el9                      @appstream    44 k
 urw-base35-z003-fonts                     noarch   20200910-6.el9                      @appstream   391 k
 webkit2gtk3-jsc                           x86_64   2.48.3-1.el9_6                      @appstream    28 M
 webrtc-audio-processing                   x86_64   0.3.1-8.el9                         @appstream   734 k
 wireplumber                               x86_64   0.4.14-1.el9                        @appstream   301 k
 wireplumber-libs                          x86_64   0.4.14-1.el9                        @appstream   1.2 M
 xdg-dbus-proxy                            x86_64   0.1.3-1.el9                         @appstream    85 k
 xdg-desktop-portal                        x86_64   1.12.6-1.el9                        @appstream   1.8 M
 xdg-desktop-portal-gtk                    x86_64   1.12.0-3.el9                        @appstream   478 k
 xkeyboard-config                          noarch   2.33-2.el9                          @appstream   5.8 M
 xml-common                                noarch   0.6.3-58.el9                        @appstream    78 k
 xorg-x11-fonts-ISO8859-1-100dpi           noarch   7.5-33.el9                          @appstream   1.0 M

トランザクションの概要
===========================================================================================================
削除  189 パッケージ

解放された容量: 369 M
これでよろしいですか? [y/N]: y
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                   1/1
  削除中           : flatpak-1.12.9-4.el9_6.x86_64                                                   1/189
  削除中           : libappstream-glib-0.7.18-5.el9_4.x86_64                                         2/189
  削除中           : php-pecl-imagick-3.7.0-1.el9.x86_64                                             3/189
  削除中           : ImageMagick-libs-6.9.13.25-1.el9.x86_64                                         4/189
  削除中           : graphviz-2.44.0-26.el9.x86_64                                                   5/189
  削除中           : gtk2-2.24.33-8.el9.x86_64                                                       6/189
  削除中           : libgs-9.54.0-19.el9_6.x86_64                                                    7/189
  削除中           : libcanberra-gtk2-0.30-27.el9.x86_64                                             8/189
  削除中           : urw-base35-fonts-20200910-6.el9.noarch                                          9/189
  scriptletの実行中: xdg-desktop-portal-gtk-1.12.0-3.el9.x86_64                                     10/189
  削除中           : xdg-desktop-portal-gtk-1.12.0-3.el9.x86_64                                     10/189
  削除中           : gtk3-3.24.31-5.el9.x86_64                                                      11/189
  削除中           : libcanberra-gtk3-0.30-27.el9.x86_64                                            12/189
  削除中           : librsvg2-2.50.7-3.el9.x86_64                                                   13/189
  削除中           : cairo-gobject-1.17.4-7.el9.x86_64                                              14/189
  削除中           : gd-2.3.2-3.el9.x86_64                                                          15/189
  scriptletの実行中: libcanberra-0.30-27.el9.x86_64                                                 16/189
  削除中           : libcanberra-0.30-27.el9.x86_64                                                 16/189
  scriptletの実行中: xdg-desktop-portal-1.12.6-1.el9.x86_64                                         17/189
  削除中           : xdg-desktop-portal-1.12.6-1.el9.x86_64                                         17/189
  削除中           : wireplumber-libs-0.4.14-1.el9.x86_64                                           18/189
  scriptletの実行中: wireplumber-0.4.14-1.el9.x86_64                                                19/189
Removed "/etc/systemd/user/pipewire-session-manager.service".
Removed "/etc/systemd/user/pipewire.service.wants/wireplumber.service".

  削除中           : wireplumber-0.4.14-1.el9.x86_64                                                19/189
  削除中           : pipewire-alsa-1.0.1-1.el9.x86_64                                               20/189
  削除中           : pipewire-jack-audio-connection-kit-libs-1.0.1-1.el9.x86_64                     21/189
  削除中           : pipewire-jack-audio-connection-kit-1.0.1-1.el9.x86_64                          22/189
  削除中           : pipewire-libs-1.0.1-1.el9.x86_64                                               23/189
  削除中           : pipewire-pulseaudio-1.0.1-1.el9.x86_64                                         24/189
  削除中           : pipewire-1.0.1-1.el9.x86_64                                                    25/189
  scriptletの実行中: geoclue2-2.6.0-8.el9_6.1.x86_64                                                26/189
  削除中           : geoclue2-2.6.0-8.el9_6.1.x86_64                                                26/189
  scriptletの実行中: geoclue2-2.6.0-8.el9_6.1.x86_64                                                26/189
  削除中           : libXaw-1.0.13-19.el9.x86_64                                                    27/189
  削除中           : LibRaw-0.21.1-1.el9.x86_64                                                     28/189
  削除中           : urw-base35-bookman-fonts-20200910-6.el9.noarch                                 29/189
  scriptletの実行中: urw-base35-bookman-fonts-20200910-6.el9.noarch                                 29/189
  削除中           : urw-base35-c059-fonts-20200910-6.el9.noarch                                    30/189
  scriptletの実行中: urw-base35-c059-fonts-20200910-6.el9.noarch                                    30/189
  削除中           : urw-base35-d050000l-fonts-20200910-6.el9.noarch                                31/189
  scriptletの実行中: urw-base35-d050000l-fonts-20200910-6.el9.noarch                                31/189
  削除中           : urw-base35-gothic-fonts-20200910-6.el9.noarch                                  32/189
  scriptletの実行中: urw-base35-gothic-fonts-20200910-6.el9.noarch                                  32/189
  削除中           : urw-base35-nimbus-mono-ps-fonts-20200910-6.el9.noarch                          33/189
  scriptletの実行中: urw-base35-nimbus-mono-ps-fonts-20200910-6.el9.noarch                          33/189
  削除中           : urw-base35-nimbus-roman-fonts-20200910-6.el9.noarch                            34/189
  scriptletの実行中: urw-base35-nimbus-roman-fonts-20200910-6.el9.noarch                            34/189
  削除中           : urw-base35-nimbus-sans-fonts-20200910-6.el9.noarch                             35/189
  scriptletの実行中: urw-base35-nimbus-sans-fonts-20200910-6.el9.noarch                             35/189
  削除中           : urw-base35-p052-fonts-20200910-6.el9.noarch                                    36/189
  scriptletの実行中: urw-base35-p052-fonts-20200910-6.el9.noarch                                    36/189
  削除中           : urw-base35-standard-symbols-ps-fonts-20200910-6.el9.noarch                     37/189
  scriptletの実行中: urw-base35-standard-symbols-ps-fonts-20200910-6.el9.noarch                     37/189
  削除中           : urw-base35-z003-fonts-20200910-6.el9.noarch                                    38/189
  scriptletの実行中: urw-base35-z003-fonts-20200910-6.el9.noarch                                    38/189
  削除中           : xorg-x11-fonts-ISO8859-1-100dpi-7.5-33.el9.noarch                              39/189
  scriptletの実行中: xorg-x11-fonts-ISO8859-1-100dpi-7.5-33.el9.noarch                              39/189
  削除中           : pulseaudio-libs-15.0-3.el9.x86_64                                              40/189
  削除中           : libsndfile-1.0.31-9.el9.x86_64                                                 41/189
  削除中           : gdk-pixbuf2-modules-2.42.6-4.el9_4.x86_64                                      42/189
  削除中           : libXcursor-1.2.0-7.el9.x86_64                                                  43/189
  削除中           : libXrandr-1.5.2-8.el9.x86_64                                                   44/189
  削除中           : at-spi2-atk-2.38.0-4.el9.x86_64                                                45/189
  削除中           : at-spi2-core-2.40.3-1.el9.x86_64                                               46/189
  削除中           : libXtst-1.2.3-16.el9.x86_64                                                    47/189
  削除中           : libXmu-1.1.3-8.el9.x86_64                                                      48/189
  削除中           : libXt-1.2.0-6.el9.x86_64                                                       49/189
  削除中           : libXinerama-1.1.4-10.el9.x86_64                                                50/189
  scriptletの実行中: tracker-3.1.2-3.el9_1.x86_64                                                   51/189
  削除中           : tracker-3.1.2-3.el9_1.x86_64                                                   51/189
  scriptletの実行中: tracker-3.1.2-3.el9_1.x86_64                                                   51/189
  scriptletの実行中: tracker-miners-3.1.2-4.el9_3.x86_64                                            52/189
  削除中           : tracker-miners-3.1.2-4.el9_3.x86_64                                            52/189
  scriptletの実行中: tracker-miners-3.1.2-4.el9_3.x86_64                                            52/189
  削除中           : libtracker-sparql-3.1.2-3.el9_1.x86_64                                         53/189
  削除中           : gstreamer1-plugins-base-1.22.12-4.el9.x86_64                                   54/189
  削除中           : pango-1.48.7-3.el9.x86_64                                                      55/189
  削除中           : libgxps-0.3.2-3.el9.x86_64                                                     56/189
  削除中           : libglvnd-glx-1:1.3.4-1.el9.x86_64                                              57/189
  削除中           : mesa-libGL-24.2.8-2.el9_6.alma.1.x86_64                                        58/189
  削除中           : libglvnd-egl-1:1.3.4-1.el9.x86_64                                              59/189
  削除中           : mesa-libEGL-24.2.8-2.el9_6.alma.1.x86_64                                       60/189
  削除中           : mesa-libglapi-24.2.8-2.el9_6.alma.1.x86_64                                     61/189
  削除中           : mesa-dri-drivers-24.2.8-2.el9_6.alma.1.x86_64                                  62/189
  削除中           : mesa-libgbm-24.2.8-2.el9_6.alma.1.x86_64                                       63/189
  削除中           : libXft-2.3.3-8.el9.x86_64                                                      64/189
  削除中           : libXxf86vm-1.1.4-18.el9.x86_64                                                 65/189
  削除中           : libXi-1.7.10-8.el9.x86_64                                                      66/189
  削除中           : libXv-1.0.11-16.el9.x86_64                                                     67/189
  削除中           : libosinfo-1.10.0-1.el9.x86_64                                                  68/189
  削除中           : poppler-glib-21.01.0-21.el9.x86_64                                             69/189
  削除中           : cairo-1.17.4-7.el9.x86_64                                                      70/189
  削除中           : poppler-21.01.0-21.el9.x86_64                                                  71/189
  削除中           : fontconfig-2.14.0-2.el9_1.x86_64                                               72/189
  scriptletの実行中: fontconfig-2.14.0-2.el9_1.x86_64                                               72/189
  削除中           : libtiff-4.4.0-13.el9.x86_64                                                    73/189
  削除中           : libXext-1.3.4-8.el9.x86_64                                                     74/189
  削除中           : libXrender-0.9.10-16.el9.x86_64                                                75/189
  削除中           : jasper-libs-2.0.28-3.el9.x86_64                                                76/189
  削除中           : avahi-glib-0.8-22.el9_6.x86_64                                                 77/189
  削除中           : libXdamage-1.1.5-7.el9.x86_64                                                  78/189
  削除中           : libXfixes-5.0.3-16.el9.x86_64                                                  79/189
  削除中           : cups-libs-1:2.3.3op2-33.el9.x86_64                                             80/189
  削除中           : exiv2-0.27.5-2.el9.x86_64                                                      81/189
  削除中           : langpacks-core-font-en-3.0-16.el9.noarch                                       82/189
  削除中           : dejavu-sans-fonts-2.37-18.el9.noarch                                           83/189
  削除中           : iso-codes-4.6.0-3.el9.noarch                                                   84/189
  削除中           : urw-base35-fonts-common-20200910-6.el9.noarch                                  85/189
  削除中           : adwaita-icon-theme-40.1.1-3.el9.noarch                                         86/189
  削除中           : adobe-mappings-cmap-deprecated-20171205-12.el9.noarch                          87/189
  削除中           : google-droid-sans-fonts-20200215-11.el9.2.noarch                               88/189
  削除中           : osinfo-db-tools-1.10.0-1.el9.x86_64                                            89/189
  削除中           : libsoup-2.72.0-10.el9_6.2.x86_64                                               90/189
  削除中           : glib-networking-2.68.3-3.el9.x86_64                                            91/189
  削除中           : libproxy-webkitgtk4-0.4.15-35.el9.x86_64                                       92/189
  削除中           : gsettings-desktop-schemas-40.0-6.el9.x86_64                                    93/189
  削除中           : webkit2gtk3-jsc-2.48.3-1.el9_6.x86_64                                          94/189
  削除中           : adobe-source-code-pro-fonts-2.030.1.050-12.el9.1.noarch                        95/189
  削除中           : abattis-cantarell-fonts-0.301-4.el9.noarch                                     96/189
  削除中           : libdrm-2.4.123-2.el9.x86_64                                                    97/189
  削除中           : libtheora-1:1.1.1-31.el9.x86_64                                                98/189
  削除中           : libvorbis-1:1.3.7-5.el9.x86_64                                                 99/189
  削除中           : libwayland-cursor-1.21.0-1.el9.x86_64                                         100/189
  削除中           : libgexiv2-0.12.3-1.el9.x86_64                                                 101/189
  削除中           : libgsf-1.14.47-5.el9.x86_64                                                   102/189
  削除中           : libSM-1.2.3-10.el9.x86_64                                                     103/189
  削除中           : flac-libs-1.3.3-10.el9_2.1.x86_64                                             104/189
  削除中           : mkfontscale-1.2.1-3.el9.x86_64                                                105/189
  削除中           : libXpm-3.5.13-10.el9.x86_64                                                   106/189
  削除中           : libnotify-0.7.9-8.el9.x86_64                                                  107/189
  削除中           : fuse-2.9.9-17.el9.x86_64                                                      108/189
  削除中           : gtk-update-icon-cache-3.24.31-5.el9.x86_64                                    109/189
  削除中           : gdk-pixbuf2-2.42.6-4.el9_4.x86_64                                             110/189
  削除中           : libXcomposite-0.4.5-7.el9.x86_64                                              111/189
  削除中           : libX11-1.7.0-11.el9.x86_64                                                    112/189
  削除中           : libxcb-1.13.1-9.el9.x86_64                                                    113/189
  削除中           : colord-libs-1.4.5-6.el9_6.x86_64                                              114/189
  削除中           : libxkbcommon-1.0.3-4.el9.x86_64                                               115/189
  削除中           : openexr-libs-3.1.1-3.el9.x86_64                                               116/189
  削除中           : libraqm-0.8.0-1.el9.x86_64                                                    117/189
  削除中           : ostree-libs-2025.1-1.el9.x86_64                                               118/189
  削除中           : xkeyboard-config-2.33-2.el9.noarch                                            119/189
  削除中           : libX11-common-1.7.0-11.el9.noarch                                             120/189
  削除中           : fuse-common-3.10.2-9.el9.x86_64                                               121/189
  削除中           : fonts-filesystem-1:2.0.5-7.el9.1.noarch                                       122/189
  削除中           : adobe-mappings-cmap-20171205-12.el9.noarch                                    123/189
  削除中           : adwaita-cursor-theme-40.1.1-3.el9.noarch                                      124/189
  削除中           : xml-common-0.6.3-58.el9.noarch                                                125/189
警告: /etc/xml/catalog saved as /etc/xml/catalog.rpmsave

  削除中           : poppler-data-0.4.9-9.el9.noarch                                               126/189
  削除中           : osinfo-db-20250124-2.el9_6.alma.2.noarch                                      127/189
  削除中           : mesa-filesystem-24.2.8-2.el9_6.alma.1.x86_64                                  128/189
  削除中           : sound-theme-freedesktop-0.8-17.el9.noarch                                     129/189
  scriptletの実行中: sound-theme-freedesktop-0.8-17.el9.noarch                                     129/189
  削除中           : hicolor-icon-theme-0.17-13.el9.noarch                                         130/189
  削除中           : adobe-mappings-pdf-20180407-10.el9.noarch                                     131/189
  削除中           : flatpak-selinux-1.12.9-4.el9_6.noarch                                         132/189
  scriptletの実行中: flatpak-selinux-1.12.9-4.el9_6.noarch                                         132/189
  削除中           : composefs-libs-1.0.8-1.el9.x86_64                                             133/189
  削除中           : fribidi-1.0.10-6.el9.2.x86_64                                                 134/189
  削除中           : imath-3.1.2-1.el9.x86_64                                                      135/189
  削除中           : lcms2-2.12-3.el9.x86_64                                                       136/189
  削除中           : libXau-1.0.9-8.el9.x86_64                                                     137/189
  削除中           : libjpeg-turbo-2.0.90-7.el9.x86_64                                             138/189
  削除中           : libfontenc-1.1.3-17.el9.x86_64                                                139/189
  削除中           : libogg-2:1.3.4-6.el9.x86_64                                                   140/189
  削除中           : libICE-1.0.10-8.el9.x86_64                                                    141/189
  削除中           : exiv2-libs-0.27.5-2.el9.x86_64                                                142/189
  削除中           : libwayland-client-1.21.0-1.el9.x86_64                                         143/189
  削除中           : libpciaccess-0.16-7.el9.x86_64                                                144/189
  削除中           : libatomic-11.5.0-5.el9_5.alma.1.x86_64                                        145/189
  削除中           : libproxy-0.4.15-35.el9.x86_64                                                 146/189
  削除中           : avahi-libs-0.8-22.el9_6.x86_64                                                147/189
  削除中           : jbigkit-libs-2.1-23.el9.x86_64                                                148/189
  削除中           : libwebp-1.2.0-8.el9_3.x86_64                                                  149/189
  削除中           : openjpeg2-2.4.0-8.el9.x86_64                                                  150/189
  削除中           : pixman-0.40.0-6.el9_3.x86_64                                                  151/189
  削除中           : libwayland-server-1.21.0-1.el9.x86_64                                         152/189
  削除中           : libX11-xcb-1.7.0-11.el9.x86_64                                                153/189
  削除中           : libxshmfence-1.3-10.el9.x86_64                                                154/189
  削除中           : libglvnd-1:1.3.4-1.el9.x86_64                                                 155/189
  削除中           : graphene-1.10.6-2.el9.x86_64                                                  156/189
  削除中           : gstreamer1-1.22.12-3.el9.x86_64                                               157/189
  削除中           : opus-1.3.1-10.el9.x86_64                                                      158/189
  削除中           : orc-0.4.31-8.el9.x86_64                                                       159/189
  削除中           : libwayland-egl-1.21.0-1.el9.x86_64                                            160/189
  削除中           : libstemmer-0-18.585svn.el9.x86_64                                             161/189
  削除中           : exempi-2.6.0-0.2.20211007gite23c213.el9.x86_64                                162/189
  削除中           : libexif-0.6.22-6.el9.x86_64                                                   163/189
  削除中           : giflib-5.2.1-9.el9.x86_64                                                     164/189
  削除中           : libiptcdata-1.0.5-10.el9.x86_64                                               165/189
  削除中           : totem-pl-parser-3.26.6-2.el9.x86_64                                           166/189
  scriptletの実行中: upower-0.99.13-2.el9.x86_64                                                   167/189
Removed "/etc/systemd/system/graphical.target.wants/upower.service".

  削除中           : upower-0.99.13-2.el9.x86_64                                                   167/189
  scriptletの実行中: upower-0.99.13-2.el9.x86_64                                                   167/189
  削除中           : atk-2.36.0-5.el9.x86_64                                                       168/189
  削除中           : gsm-1.0.19-6.el9.x86_64                                                       169/189
  削除中           : libasyncns-0.8-22.el9.x86_64                                                  170/189
  削除中           : ModemManager-glib-1.20.2-1.el9.x86_64                                         171/189
  scriptletの実行中: rtkit-0.11-29.el9.x86_64                                                      172/189
Removed "/etc/systemd/system/graphical.target.wants/rtkit-daemon.service".

  削除中           : rtkit-0.11-29.el9.x86_64                                                      172/189
  scriptletの実行中: rtkit-0.11-29.el9.x86_64                                                      172/189
  削除中           : bluez-libs-5.72-4.el9.x86_64                                                  173/189
  削除中           : fdk-aac-free-2.0.0-8.el9.x86_64                                               174/189
  削除中           : libldac-2.0.2.3-10.el9.x86_64                                                 175/189
  削除中           : libsbc-1.4-9.el9.x86_64                                                       176/189
  削除中           : webrtc-audio-processing-0.3.1-8.el9.x86_64                                    177/189
  scriptletの実行中: low-memory-monitor-2.1-4.el9.x86_64                                           178/189
Removed "/etc/systemd/system/basic.target.wants/low-memory-monitor.service".

  削除中           : low-memory-monitor-2.1-4.el9.x86_64                                           178/189
  scriptletの実行中: low-memory-monitor-2.1-4.el9.x86_64                                           178/189
  削除中           : libepoxy-1.5.5-4.el9.x86_64                                                   179/189
  scriptletの実行中: dconf-0.40.0-6.el9.x86_64                                                     180/189
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled or disabled using systemctl.

Possible reasons for having this kind of units are:
~ A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
~ A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
~ A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
~ In case of template units, the unit is meant to be enabled with some
  instance name specified.

  削除中           : dconf-0.40.0-6.el9.x86_64                                                     180/189
  scriptletの実行中: dconf-0.40.0-6.el9.x86_64                                                     180/189
  削除中           : libijs-0.35-15.el9.x86_64                                                     181/189
  削除中           : jbig2dec-libs-0.19-7.el9.x86_64                                               182/189
  削除中           : libpaper-1.1.28-4.el9.x86_64                                                  183/189
  削除中           : liblqr-1-0.4.2-19.el9.x86_64                                                  184/189
  削除中           : libwmf-lite-0.2.12-10.el9.x86_64                                              185/189
  削除中           : xdg-dbus-proxy-0.1.3-1.el9.x86_64                                             186/189
  削除中           : bubblewrap-0.4.1-8.el9_5.x86_64                                               187/189
  削除中           : flatpak-session-helper-1.12.9-4.el9_6.x86_64                                  188/189
  削除中           : p11-kit-server-0.25.3-3.el9_5.x86_64                                          189/189
  scriptletの実行中: p11-kit-server-0.25.3-3.el9_5.x86_64                                          189/189
  検証中           : ImageMagick-libs-6.9.13.25-1.el9.x86_64                                         1/189
  検証中           : LibRaw-0.21.1-1.el9.x86_64                                                      2/189
  検証中           : ModemManager-glib-1.20.2-1.el9.x86_64                                           3/189
  検証中           : abattis-cantarell-fonts-0.301-4.el9.noarch                                      4/189
  検証中           : adobe-mappings-cmap-20171205-12.el9.noarch                                      5/189
  検証中           : adobe-mappings-cmap-deprecated-20171205-12.el9.noarch                           6/189
  検証中           : adobe-mappings-pdf-20180407-10.el9.noarch                                       7/189
  検証中           : adobe-source-code-pro-fonts-2.030.1.050-12.el9.1.noarch                         8/189
  検証中           : adwaita-cursor-theme-40.1.1-3.el9.noarch                                        9/189
  検証中           : adwaita-icon-theme-40.1.1-3.el9.noarch                                         10/189
  検証中           : at-spi2-atk-2.38.0-4.el9.x86_64                                                11/189
  検証中           : at-spi2-core-2.40.3-1.el9.x86_64                                               12/189
  検証中           : atk-2.36.0-5.el9.x86_64                                                        13/189
  検証中           : avahi-glib-0.8-22.el9_6.x86_64                                                 14/189
  検証中           : avahi-libs-0.8-22.el9_6.x86_64                                                 15/189
  検証中           : bluez-libs-5.72-4.el9.x86_64                                                   16/189
  検証中           : bubblewrap-0.4.1-8.el9_5.x86_64                                                17/189
  検証中           : cairo-1.17.4-7.el9.x86_64                                                      18/189
  検証中           : cairo-gobject-1.17.4-7.el9.x86_64                                              19/189
  検証中           : colord-libs-1.4.5-6.el9_6.x86_64                                               20/189
  検証中           : composefs-libs-1.0.8-1.el9.x86_64                                              21/189
  検証中           : cups-libs-1:2.3.3op2-33.el9.x86_64                                             22/189
  検証中           : dconf-0.40.0-6.el9.x86_64                                                      23/189
  検証中           : dejavu-sans-fonts-2.37-18.el9.noarch                                           24/189
  検証中           : exempi-2.6.0-0.2.20211007gite23c213.el9.x86_64                                 25/189
  検証中           : exiv2-0.27.5-2.el9.x86_64                                                      26/189
  検証中           : exiv2-libs-0.27.5-2.el9.x86_64                                                 27/189
  検証中           : fdk-aac-free-2.0.0-8.el9.x86_64                                                28/189
  検証中           : flac-libs-1.3.3-10.el9_2.1.x86_64                                              29/189
  検証中           : flatpak-1.12.9-4.el9_6.x86_64                                                  30/189
  検証中           : flatpak-selinux-1.12.9-4.el9_6.noarch                                          31/189
  検証中           : flatpak-session-helper-1.12.9-4.el9_6.x86_64                                   32/189
  検証中           : fontconfig-2.14.0-2.el9_1.x86_64                                               33/189
  検証中           : fonts-filesystem-1:2.0.5-7.el9.1.noarch                                        34/189
  検証中           : fribidi-1.0.10-6.el9.2.x86_64                                                  35/189
  検証中           : fuse-2.9.9-17.el9.x86_64                                                       36/189
  検証中           : fuse-common-3.10.2-9.el9.x86_64                                                37/189
  検証中           : gd-2.3.2-3.el9.x86_64                                                          38/189
  検証中           : gdk-pixbuf2-2.42.6-4.el9_4.x86_64                                              39/189
  検証中           : gdk-pixbuf2-modules-2.42.6-4.el9_4.x86_64                                      40/189
  検証中           : geoclue2-2.6.0-8.el9_6.1.x86_64                                                41/189
  検証中           : giflib-5.2.1-9.el9.x86_64                                                      42/189
  検証中           : glib-networking-2.68.3-3.el9.x86_64                                            43/189
  検証中           : google-droid-sans-fonts-20200215-11.el9.2.noarch                               44/189
  検証中           : graphene-1.10.6-2.el9.x86_64                                                   45/189
  検証中           : graphviz-2.44.0-26.el9.x86_64                                                  46/189
  検証中           : gsettings-desktop-schemas-40.0-6.el9.x86_64                                    47/189
  検証中           : gsm-1.0.19-6.el9.x86_64                                                        48/189
  検証中           : gstreamer1-1.22.12-3.el9.x86_64                                                49/189
  検証中           : gstreamer1-plugins-base-1.22.12-4.el9.x86_64                                   50/189
  検証中           : gtk-update-icon-cache-3.24.31-5.el9.x86_64                                     51/189
  検証中           : gtk2-2.24.33-8.el9.x86_64                                                      52/189
  検証中           : gtk3-3.24.31-5.el9.x86_64                                                      53/189
  検証中           : hicolor-icon-theme-0.17-13.el9.noarch                                          54/189
  検証中           : imath-3.1.2-1.el9.x86_64                                                       55/189
  検証中           : iso-codes-4.6.0-3.el9.noarch                                                   56/189
  検証中           : jasper-libs-2.0.28-3.el9.x86_64                                                57/189
  検証中           : jbig2dec-libs-0.19-7.el9.x86_64                                                58/189
  検証中           : jbigkit-libs-2.1-23.el9.x86_64                                                 59/189
  検証中           : langpacks-core-font-en-3.0-16.el9.noarch                                       60/189
  検証中           : lcms2-2.12-3.el9.x86_64                                                        61/189
  検証中           : libICE-1.0.10-8.el9.x86_64                                                     62/189
  検証中           : libSM-1.2.3-10.el9.x86_64                                                      63/189
  検証中           : libX11-1.7.0-11.el9.x86_64                                                     64/189
  検証中           : libX11-common-1.7.0-11.el9.noarch                                              65/189
  検証中           : libX11-xcb-1.7.0-11.el9.x86_64                                                 66/189
  検証中           : libXau-1.0.9-8.el9.x86_64                                                      67/189
  検証中           : libXaw-1.0.13-19.el9.x86_64                                                    68/189
  検証中           : libXcomposite-0.4.5-7.el9.x86_64                                               69/189
  検証中           : libXcursor-1.2.0-7.el9.x86_64                                                  70/189
  検証中           : libXdamage-1.1.5-7.el9.x86_64                                                  71/189
  検証中           : libXext-1.3.4-8.el9.x86_64                                                     72/189
  検証中           : libXfixes-5.0.3-16.el9.x86_64                                                  73/189
  検証中           : libXft-2.3.3-8.el9.x86_64                                                      74/189
  検証中           : libXi-1.7.10-8.el9.x86_64                                                      75/189
  検証中           : libXinerama-1.1.4-10.el9.x86_64                                                76/189
  検証中           : libXmu-1.1.3-8.el9.x86_64                                                      77/189
  検証中           : libXpm-3.5.13-10.el9.x86_64                                                    78/189
  検証中           : libXrandr-1.5.2-8.el9.x86_64                                                   79/189
  検証中           : libXrender-0.9.10-16.el9.x86_64                                                80/189
  検証中           : libXt-1.2.0-6.el9.x86_64                                                       81/189
  検証中           : libXtst-1.2.3-16.el9.x86_64                                                    82/189
  検証中           : libXv-1.0.11-16.el9.x86_64                                                     83/189
  検証中           : libXxf86vm-1.1.4-18.el9.x86_64                                                 84/189
  検証中           : libappstream-glib-0.7.18-5.el9_4.x86_64                                        85/189
  検証中           : libasyncns-0.8-22.el9.x86_64                                                   86/189
  検証中           : libatomic-11.5.0-5.el9_5.alma.1.x86_64                                         87/189
  検証中           : libcanberra-0.30-27.el9.x86_64                                                 88/189
  検証中           : libcanberra-gtk2-0.30-27.el9.x86_64                                            89/189
  検証中           : libcanberra-gtk3-0.30-27.el9.x86_64                                            90/189
  検証中           : libdrm-2.4.123-2.el9.x86_64                                                    91/189
  検証中           : libepoxy-1.5.5-4.el9.x86_64                                                    92/189
  検証中           : libexif-0.6.22-6.el9.x86_64                                                    93/189
  検証中           : libfontenc-1.1.3-17.el9.x86_64                                                 94/189
  検証中           : libgexiv2-0.12.3-1.el9.x86_64                                                  95/189
  検証中           : libglvnd-1:1.3.4-1.el9.x86_64                                                  96/189
  検証中           : libglvnd-egl-1:1.3.4-1.el9.x86_64                                              97/189
  検証中           : libglvnd-glx-1:1.3.4-1.el9.x86_64                                              98/189
  検証中           : libgs-9.54.0-19.el9_6.x86_64                                                   99/189
  検証中           : libgsf-1.14.47-5.el9.x86_64                                                   100/189
  検証中           : libgxps-0.3.2-3.el9.x86_64                                                    101/189
  検証中           : libijs-0.35-15.el9.x86_64                                                     102/189
  検証中           : libiptcdata-1.0.5-10.el9.x86_64                                               103/189
  検証中           : libjpeg-turbo-2.0.90-7.el9.x86_64                                             104/189
  検証中           : libldac-2.0.2.3-10.el9.x86_64                                                 105/189
  検証中           : liblqr-1-0.4.2-19.el9.x86_64                                                  106/189
  検証中           : libnotify-0.7.9-8.el9.x86_64                                                  107/189
  検証中           : libogg-2:1.3.4-6.el9.x86_64                                                   108/189
  検証中           : libosinfo-1.10.0-1.el9.x86_64                                                 109/189
  検証中           : libpaper-1.1.28-4.el9.x86_64                                                  110/189
  検証中           : libpciaccess-0.16-7.el9.x86_64                                                111/189
  検証中           : libproxy-0.4.15-35.el9.x86_64                                                 112/189
  検証中           : libproxy-webkitgtk4-0.4.15-35.el9.x86_64                                      113/189
  検証中           : libraqm-0.8.0-1.el9.x86_64                                                    114/189
  検証中           : librsvg2-2.50.7-3.el9.x86_64                                                  115/189
  検証中           : libsbc-1.4-9.el9.x86_64                                                       116/189
  検証中           : libsndfile-1.0.31-9.el9.x86_64                                                117/189
  検証中           : libsoup-2.72.0-10.el9_6.2.x86_64                                              118/189
  検証中           : libstemmer-0-18.585svn.el9.x86_64                                             119/189
  検証中           : libtheora-1:1.1.1-31.el9.x86_64                                               120/189
  検証中           : libtiff-4.4.0-13.el9.x86_64                                                   121/189
  検証中           : libtracker-sparql-3.1.2-3.el9_1.x86_64                                        122/189
  検証中           : libvorbis-1:1.3.7-5.el9.x86_64                                                123/189
  検証中           : libwayland-client-1.21.0-1.el9.x86_64                                         124/189
  検証中           : libwayland-cursor-1.21.0-1.el9.x86_64                                         125/189
  検証中           : libwayland-egl-1.21.0-1.el9.x86_64                                            126/189
  検証中           : libwayland-server-1.21.0-1.el9.x86_64                                         127/189
  検証中           : libwebp-1.2.0-8.el9_3.x86_64                                                  128/189
  検証中           : libwmf-lite-0.2.12-10.el9.x86_64                                              129/189
  検証中           : libxcb-1.13.1-9.el9.x86_64                                                    130/189
  検証中           : libxkbcommon-1.0.3-4.el9.x86_64                                               131/189
  検証中           : libxshmfence-1.3-10.el9.x86_64                                                132/189
  検証中           : low-memory-monitor-2.1-4.el9.x86_64                                           133/189
  検証中           : mesa-dri-drivers-24.2.8-2.el9_6.alma.1.x86_64                                 134/189
  検証中           : mesa-filesystem-24.2.8-2.el9_6.alma.1.x86_64                                  135/189
  検証中           : mesa-libEGL-24.2.8-2.el9_6.alma.1.x86_64                                      136/189
  検証中           : mesa-libGL-24.2.8-2.el9_6.alma.1.x86_64                                       137/189
  検証中           : mesa-libgbm-24.2.8-2.el9_6.alma.1.x86_64                                      138/189
  検証中           : mesa-libglapi-24.2.8-2.el9_6.alma.1.x86_64                                    139/189
  検証中           : mkfontscale-1.2.1-3.el9.x86_64                                                140/189
  検証中           : openexr-libs-3.1.1-3.el9.x86_64                                               141/189
  検証中           : openjpeg2-2.4.0-8.el9.x86_64                                                  142/189
  検証中           : opus-1.3.1-10.el9.x86_64                                                      143/189
  検証中           : orc-0.4.31-8.el9.x86_64                                                       144/189
  検証中           : osinfo-db-20250124-2.el9_6.alma.2.noarch                                      145/189
  検証中           : osinfo-db-tools-1.10.0-1.el9.x86_64                                           146/189
  検証中           : ostree-libs-2025.1-1.el9.x86_64                                               147/189
  検証中           : p11-kit-server-0.25.3-3.el9_5.x86_64                                          148/189
  検証中           : pango-1.48.7-3.el9.x86_64                                                     149/189
  検証中           : php-pecl-imagick-3.7.0-1.el9.x86_64                                           150/189
  検証中           : pipewire-1.0.1-1.el9.x86_64                                                   151/189
  検証中           : pipewire-alsa-1.0.1-1.el9.x86_64                                              152/189
  検証中           : pipewire-jack-audio-connection-kit-1.0.1-1.el9.x86_64                         153/189
  検証中           : pipewire-jack-audio-connection-kit-libs-1.0.1-1.el9.x86_64                    154/189
  検証中           : pipewire-libs-1.0.1-1.el9.x86_64                                              155/189
  検証中           : pipewire-pulseaudio-1.0.1-1.el9.x86_64                                        156/189
  検証中           : pixman-0.40.0-6.el9_3.x86_64                                                  157/189
  検証中           : poppler-21.01.0-21.el9.x86_64                                                 158/189
  検証中           : poppler-data-0.4.9-9.el9.noarch                                               159/189
  検証中           : poppler-glib-21.01.0-21.el9.x86_64                                            160/189
  検証中           : pulseaudio-libs-15.0-3.el9.x86_64                                             161/189
  検証中           : rtkit-0.11-29.el9.x86_64                                                      162/189
  検証中           : sound-theme-freedesktop-0.8-17.el9.noarch                                     163/189
  検証中           : totem-pl-parser-3.26.6-2.el9.x86_64                                           164/189
  検証中           : tracker-3.1.2-3.el9_1.x86_64                                                  165/189
  検証中           : tracker-miners-3.1.2-4.el9_3.x86_64                                           166/189
  検証中           : upower-0.99.13-2.el9.x86_64                                                   167/189
  検証中           : urw-base35-bookman-fonts-20200910-6.el9.noarch                                168/189
  検証中           : urw-base35-c059-fonts-20200910-6.el9.noarch                                   169/189
  検証中           : urw-base35-d050000l-fonts-20200910-6.el9.noarch                               170/189
  検証中           : urw-base35-fonts-20200910-6.el9.noarch                                        171/189
  検証中           : urw-base35-fonts-common-20200910-6.el9.noarch                                 172/189
  検証中           : urw-base35-gothic-fonts-20200910-6.el9.noarch                                 173/189
  検証中           : urw-base35-nimbus-mono-ps-fonts-20200910-6.el9.noarch                         174/189
  検証中           : urw-base35-nimbus-roman-fonts-20200910-6.el9.noarch                           175/189
  検証中           : urw-base35-nimbus-sans-fonts-20200910-6.el9.noarch                            176/189
  検証中           : urw-base35-p052-fonts-20200910-6.el9.noarch                                   177/189
  検証中           : urw-base35-standard-symbols-ps-fonts-20200910-6.el9.noarch                    178/189
  検証中           : urw-base35-z003-fonts-20200910-6.el9.noarch                                   179/189
  検証中           : webkit2gtk3-jsc-2.48.3-1.el9_6.x86_64                                         180/189
  検証中           : webrtc-audio-processing-0.3.1-8.el9.x86_64                                    181/189
  検証中           : wireplumber-0.4.14-1.el9.x86_64                                               182/189
  検証中           : wireplumber-libs-0.4.14-1.el9.x86_64                                          183/189
  検証中           : xdg-dbus-proxy-0.1.3-1.el9.x86_64                                             184/189
  検証中           : xdg-desktop-portal-1.12.6-1.el9.x86_64                                        185/189
  検証中           : xdg-desktop-portal-gtk-1.12.0-3.el9.x86_64                                    186/189
  検証中           : xkeyboard-config-2.33-2.el9.noarch                                            187/189
  検証中           : xml-common-0.6.3-58.el9.noarch                                                188/189
  検証中           : xorg-x11-fonts-ISO8859-1-100dpi-7.5-33.el9.noarch                             189/189

削除しました:
  ImageMagick-libs-6.9.13.25-1.el9.x86_64
  LibRaw-0.21.1-1.el9.x86_64
  ModemManager-glib-1.20.2-1.el9.x86_64
  abattis-cantarell-fonts-0.301-4.el9.noarch
  adobe-mappings-cmap-20171205-12.el9.noarch
  adobe-mappings-cmap-deprecated-20171205-12.el9.noarch
  adobe-mappings-pdf-20180407-10.el9.noarch
  adobe-source-code-pro-fonts-2.030.1.050-12.el9.1.noarch
  adwaita-cursor-theme-40.1.1-3.el9.noarch
  adwaita-icon-theme-40.1.1-3.el9.noarch
  at-spi2-atk-2.38.0-4.el9.x86_64
  at-spi2-core-2.40.3-1.el9.x86_64
  atk-2.36.0-5.el9.x86_64
  avahi-glib-0.8-22.el9_6.x86_64
  avahi-libs-0.8-22.el9_6.x86_64
  bluez-libs-5.72-4.el9.x86_64
  bubblewrap-0.4.1-8.el9_5.x86_64
  cairo-1.17.4-7.el9.x86_64
  cairo-gobject-1.17.4-7.el9.x86_64
  colord-libs-1.4.5-6.el9_6.x86_64
  composefs-libs-1.0.8-1.el9.x86_64
  cups-libs-1:2.3.3op2-33.el9.x86_64
  dconf-0.40.0-6.el9.x86_64
  dejavu-sans-fonts-2.37-18.el9.noarch
  exempi-2.6.0-0.2.20211007gite23c213.el9.x86_64
  exiv2-0.27.5-2.el9.x86_64
  exiv2-libs-0.27.5-2.el9.x86_64
  fdk-aac-free-2.0.0-8.el9.x86_64
  flac-libs-1.3.3-10.el9_2.1.x86_64
  flatpak-1.12.9-4.el9_6.x86_64
  flatpak-selinux-1.12.9-4.el9_6.noarch
  flatpak-session-helper-1.12.9-4.el9_6.x86_64
  fontconfig-2.14.0-2.el9_1.x86_64
  fonts-filesystem-1:2.0.5-7.el9.1.noarch
  fribidi-1.0.10-6.el9.2.x86_64
  fuse-2.9.9-17.el9.x86_64
  fuse-common-3.10.2-9.el9.x86_64
  gd-2.3.2-3.el9.x86_64
  gdk-pixbuf2-2.42.6-4.el9_4.x86_64
  gdk-pixbuf2-modules-2.42.6-4.el9_4.x86_64
  geoclue2-2.6.0-8.el9_6.1.x86_64
  giflib-5.2.1-9.el9.x86_64
  glib-networking-2.68.3-3.el9.x86_64
  google-droid-sans-fonts-20200215-11.el9.2.noarch
  graphene-1.10.6-2.el9.x86_64
  graphviz-2.44.0-26.el9.x86_64
  gsettings-desktop-schemas-40.0-6.el9.x86_64
  gsm-1.0.19-6.el9.x86_64
  gstreamer1-1.22.12-3.el9.x86_64
  gstreamer1-plugins-base-1.22.12-4.el9.x86_64
  gtk-update-icon-cache-3.24.31-5.el9.x86_64
  gtk2-2.24.33-8.el9.x86_64
  gtk3-3.24.31-5.el9.x86_64
  hicolor-icon-theme-0.17-13.el9.noarch
  imath-3.1.2-1.el9.x86_64
  iso-codes-4.6.0-3.el9.noarch
  jasper-libs-2.0.28-3.el9.x86_64
  jbig2dec-libs-0.19-7.el9.x86_64
  jbigkit-libs-2.1-23.el9.x86_64
  langpacks-core-font-en-3.0-16.el9.noarch
  lcms2-2.12-3.el9.x86_64
  libICE-1.0.10-8.el9.x86_64
  libSM-1.2.3-10.el9.x86_64
  libX11-1.7.0-11.el9.x86_64
  libX11-common-1.7.0-11.el9.noarch
  libX11-xcb-1.7.0-11.el9.x86_64
  libXau-1.0.9-8.el9.x86_64
  libXaw-1.0.13-19.el9.x86_64
  libXcomposite-0.4.5-7.el9.x86_64
  libXcursor-1.2.0-7.el9.x86_64
  libXdamage-1.1.5-7.el9.x86_64
  libXext-1.3.4-8.el9.x86_64
  libXfixes-5.0.3-16.el9.x86_64
  libXft-2.3.3-8.el9.x86_64
  libXi-1.7.10-8.el9.x86_64
  libXinerama-1.1.4-10.el9.x86_64
  libXmu-1.1.3-8.el9.x86_64
  libXpm-3.5.13-10.el9.x86_64
  libXrandr-1.5.2-8.el9.x86_64
  libXrender-0.9.10-16.el9.x86_64
  libXt-1.2.0-6.el9.x86_64
  libXtst-1.2.3-16.el9.x86_64
  libXv-1.0.11-16.el9.x86_64
  libXxf86vm-1.1.4-18.el9.x86_64
  libappstream-glib-0.7.18-5.el9_4.x86_64
  libasyncns-0.8-22.el9.x86_64
  libatomic-11.5.0-5.el9_5.alma.1.x86_64
  libcanberra-0.30-27.el9.x86_64
  libcanberra-gtk2-0.30-27.el9.x86_64
  libcanberra-gtk3-0.30-27.el9.x86_64
  libdrm-2.4.123-2.el9.x86_64
  libepoxy-1.5.5-4.el9.x86_64
  libexif-0.6.22-6.el9.x86_64
  libfontenc-1.1.3-17.el9.x86_64
  libgexiv2-0.12.3-1.el9.x86_64
  libglvnd-1:1.3.4-1.el9.x86_64
  libglvnd-egl-1:1.3.4-1.el9.x86_64
  libglvnd-glx-1:1.3.4-1.el9.x86_64
  libgs-9.54.0-19.el9_6.x86_64
  libgsf-1.14.47-5.el9.x86_64
  libgxps-0.3.2-3.el9.x86_64
  libijs-0.35-15.el9.x86_64
  libiptcdata-1.0.5-10.el9.x86_64
  libjpeg-turbo-2.0.90-7.el9.x86_64
  libldac-2.0.2.3-10.el9.x86_64
  liblqr-1-0.4.2-19.el9.x86_64
  libnotify-0.7.9-8.el9.x86_64
  libogg-2:1.3.4-6.el9.x86_64
  libosinfo-1.10.0-1.el9.x86_64
  libpaper-1.1.28-4.el9.x86_64
  libpciaccess-0.16-7.el9.x86_64
  libproxy-0.4.15-35.el9.x86_64
  libproxy-webkitgtk4-0.4.15-35.el9.x86_64
  libraqm-0.8.0-1.el9.x86_64
  librsvg2-2.50.7-3.el9.x86_64
  libsbc-1.4-9.el9.x86_64
  libsndfile-1.0.31-9.el9.x86_64
  libsoup-2.72.0-10.el9_6.2.x86_64
  libstemmer-0-18.585svn.el9.x86_64
  libtheora-1:1.1.1-31.el9.x86_64
  libtiff-4.4.0-13.el9.x86_64
  libtracker-sparql-3.1.2-3.el9_1.x86_64
  libvorbis-1:1.3.7-5.el9.x86_64
  libwayland-client-1.21.0-1.el9.x86_64
  libwayland-cursor-1.21.0-1.el9.x86_64
  libwayland-egl-1.21.0-1.el9.x86_64
  libwayland-server-1.21.0-1.el9.x86_64
  libwebp-1.2.0-8.el9_3.x86_64
  libwmf-lite-0.2.12-10.el9.x86_64
  libxcb-1.13.1-9.el9.x86_64
  libxkbcommon-1.0.3-4.el9.x86_64
  libxshmfence-1.3-10.el9.x86_64
  low-memory-monitor-2.1-4.el9.x86_64
  mesa-dri-drivers-24.2.8-2.el9_6.alma.1.x86_64
  mesa-filesystem-24.2.8-2.el9_6.alma.1.x86_64
  mesa-libEGL-24.2.8-2.el9_6.alma.1.x86_64
  mesa-libGL-24.2.8-2.el9_6.alma.1.x86_64
  mesa-libgbm-24.2.8-2.el9_6.alma.1.x86_64
  mesa-libglapi-24.2.8-2.el9_6.alma.1.x86_64
  mkfontscale-1.2.1-3.el9.x86_64
  openexr-libs-3.1.1-3.el9.x86_64
  openjpeg2-2.4.0-8.el9.x86_64
  opus-1.3.1-10.el9.x86_64
  orc-0.4.31-8.el9.x86_64
  osinfo-db-20250124-2.el9_6.alma.2.noarch
  osinfo-db-tools-1.10.0-1.el9.x86_64
  ostree-libs-2025.1-1.el9.x86_64
  p11-kit-server-0.25.3-3.el9_5.x86_64
  pango-1.48.7-3.el9.x86_64
  php-pecl-imagick-3.7.0-1.el9.x86_64
  pipewire-1.0.1-1.el9.x86_64
  pipewire-alsa-1.0.1-1.el9.x86_64
  pipewire-jack-audio-connection-kit-1.0.1-1.el9.x86_64
  pipewire-jack-audio-connection-kit-libs-1.0.1-1.el9.x86_64
  pipewire-libs-1.0.1-1.el9.x86_64
  pipewire-pulseaudio-1.0.1-1.el9.x86_64
  pixman-0.40.0-6.el9_3.x86_64
  poppler-21.01.0-21.el9.x86_64
  poppler-data-0.4.9-9.el9.noarch
  poppler-glib-21.01.0-21.el9.x86_64
  pulseaudio-libs-15.0-3.el9.x86_64
  rtkit-0.11-29.el9.x86_64
  sound-theme-freedesktop-0.8-17.el9.noarch
  totem-pl-parser-3.26.6-2.el9.x86_64
  tracker-3.1.2-3.el9_1.x86_64
  tracker-miners-3.1.2-4.el9_3.x86_64
  upower-0.99.13-2.el9.x86_64
  urw-base35-bookman-fonts-20200910-6.el9.noarch
  urw-base35-c059-fonts-20200910-6.el9.noarch
  urw-base35-d050000l-fonts-20200910-6.el9.noarch
  urw-base35-fonts-20200910-6.el9.noarch
  urw-base35-fonts-common-20200910-6.el9.noarch
  urw-base35-gothic-fonts-20200910-6.el9.noarch
  urw-base35-nimbus-mono-ps-fonts-20200910-6.el9.noarch
  urw-base35-nimbus-roman-fonts-20200910-6.el9.noarch
  urw-base35-nimbus-sans-fonts-20200910-6.el9.noarch
  urw-base35-p052-fonts-20200910-6.el9.noarch
  urw-base35-standard-symbols-ps-fonts-20200910-6.el9.noarch
  urw-base35-z003-fonts-20200910-6.el9.noarch
  webkit2gtk3-jsc-2.48.3-1.el9_6.x86_64
  webrtc-audio-processing-0.3.1-8.el9.x86_64
  wireplumber-0.4.14-1.el9.x86_64
  wireplumber-libs-0.4.14-1.el9.x86_64
  xdg-dbus-proxy-0.1.3-1.el9.x86_64
  xdg-desktop-portal-1.12.6-1.el9.x86_64
  xdg-desktop-portal-gtk-1.12.0-3.el9.x86_64
  xkeyboard-config-2.33-2.el9.noarch
  xml-common-0.6.3-58.el9.noarch
  xorg-x11-fonts-ISO8859-1-100dpi-7.5-33.el9.noarch

完了しました!
$

この後再度、dnf module switch-to php:8.3 を実行して切り替えに成功しました

$ sudo dnf module switch-to php:8.3
メタデータの期限切れの最終確認: 2:41:59 前の 2025年07月16日 07時18分53秒 に実施しました。
依存関係が解決しました。
===========================================================================================================
 パッケージ           Arch           バージョン                                    リポジトリー      サイズ
===========================================================================================================
アップグレード:
 php                  x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         7.8 k
 php-cli              x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         3.7 M
 php-common           x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         706 k
 php-fpm              x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         1.9 M
 php-intl             x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         167 k
 php-mbstring         x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         524 k
 php-mysqlnd          x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         144 k
 php-opcache          x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         353 k
 php-pdo              x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream          86 k
 php-pecl-zip         x86_64         1.22.3-1.module_el9.6.0+151+5f31e576          appstream          57 k
 php-xml              x86_64         8.3.19-1.module_el9.6.0+166+f262c21c          appstream         150 k
依存関係のインストール:
 capstone             x86_64         4.0.2-10.el9                                  appstream         766 k
モジュールストリームの有効化中:
 php                                 8.3

トランザクションの概要
===========================================================================================================
インストール     1 パッケージ
アップグレード  11 パッケージ

ダウンロードサイズの合計: 8.5 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
(1/12): php-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm                 86 kB/s | 7.8 kB     00:00
(2/12): capstone-4.0.2-10.el9.x86_64.rpm                                   3.1 MB/s | 766 kB     00:00
(3/12): php-common-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm         2.8 MB/s | 706 kB     00:00
(4/12): php-intl-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm           2.0 MB/s | 167 kB     00:00
(5/12): php-mbstring-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm       2.5 MB/s | 524 kB     00:00
(6/12): php-mysqlnd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm        2.2 MB/s | 144 kB     00:00
(7/12): php-fpm-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm            3.8 MB/s | 1.9 MB     00:00
(8/12): php-opcache-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm        2.7 MB/s | 353 kB     00:00
(9/12): php-pdo-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm            1.1 MB/s |  86 kB     00:00
(10/12): php-pecl-zip-1.22.3-1.module_el9.6.0+151+5f31e576.x86_64.rpm      1.5 MB/s |  57 kB     00:00
(11/12): php-xml-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm           1.5 MB/s | 150 kB     00:00
(12/12): php-cli-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm           4.0 MB/s | 3.7 MB     00:00
-----------------------------------------------------------------------------------------------------------
合計                                                                       5.7 MB/s | 8.5 MB     00:01
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                   1/1
  アップグレード中 : php-common-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                           1/23
  アップグレード中 : php-pdo-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              2/23
  アップグレード中 : php-cli-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              3/23
  アップグレード中 : php-fpm-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              4/23
  scriptletの実行中: php-fpm-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              4/23
  アップグレード中 : php-mbstring-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                         5/23
  アップグレード中 : php-xml-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              6/23
  インストール中   : capstone-4.0.2-10.el9.x86_64                                                     7/23
  アップグレード中 : php-opcache-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                          8/23
  アップグレード中 : php-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                                  9/23
  アップグレード中 : php-mysqlnd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                         10/23
  アップグレード中 : php-intl-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                            11/23
  アップグレード中 : php-pecl-zip-1.22.3-1.module_el9.6.0+151+5f31e576.x86_64                        12/23
  整理             : php-8.0.30-3.el9_6.x86_64                                                       13/23
  整理             : php-pecl-zip-1.19.2-6.el9.x86_64                                                14/23
  整理             : php-cli-8.0.30-3.el9_6.x86_64                                                   15/23
  scriptletの実行中: php-fpm-8.0.30-3.el9_6.x86_64                                                   16/23
  整理             : php-fpm-8.0.30-3.el9_6.x86_64                                                   16/23
  整理             : php-mbstring-8.0.30-3.el9_6.x86_64                                              17/23
  整理             : php-opcache-8.0.30-3.el9_6.x86_64                                               18/23
  整理             : php-xml-8.0.30-3.el9_6.x86_64                                                   19/23
  整理             : php-mysqlnd-8.0.30-3.el9_6.x86_64                                               20/23
  整理             : php-pdo-8.0.30-3.el9_6.x86_64                                                   21/23
  整理             : php-intl-8.0.30-3.el9_6.x86_64                                                  22/23
  整理             : php-common-8.0.30-3.el9_6.x86_64                                                23/23
  scriptletの実行中: php-common-8.0.30-3.el9_6.x86_64                                                23/23
  検証中           : capstone-4.0.2-10.el9.x86_64                                                     1/23
  検証中           : php-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                                  2/23
  検証中           : php-8.0.30-3.el9_6.x86_64                                                        3/23
  検証中           : php-cli-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              4/23
  検証中           : php-cli-8.0.30-3.el9_6.x86_64                                                    5/23
  検証中           : php-common-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                           6/23
  検証中           : php-common-8.0.30-3.el9_6.x86_64                                                 7/23
  検証中           : php-fpm-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                              8/23
  検証中           : php-fpm-8.0.30-3.el9_6.x86_64                                                    9/23
  検証中           : php-intl-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                            10/23
  検証中           : php-intl-8.0.30-3.el9_6.x86_64                                                  11/23
  検証中           : php-mbstring-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                        12/23
  検証中           : php-mbstring-8.0.30-3.el9_6.x86_64                                              13/23
  検証中           : php-mysqlnd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                         14/23
  検証中           : php-mysqlnd-8.0.30-3.el9_6.x86_64                                               15/23
  検証中           : php-opcache-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                         16/23
  検証中           : php-opcache-8.0.30-3.el9_6.x86_64                                               17/23
  検証中           : php-pdo-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                             18/23
  検証中           : php-pdo-8.0.30-3.el9_6.x86_64                                                   19/23
  検証中           : php-pecl-zip-1.22.3-1.module_el9.6.0+151+5f31e576.x86_64                        20/23
  検証中           : php-pecl-zip-1.19.2-6.el9.x86_64                                                21/23
  検証中           : php-xml-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                             22/23
  検証中           : php-xml-8.0.30-3.el9_6.x86_64                                                   23/23

アップグレード済み:
  php-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-cli-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-common-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-fpm-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-intl-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-mbstring-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-mysqlnd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-opcache-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-pdo-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
  php-pecl-zip-1.22.3-1.module_el9.6.0+151+5f31e576.x86_64
  php-xml-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64
インストール済み:
  capstone-4.0.2-10.el9.x86_64

完了しました!
$

で・・・削除した php-pecl-imagick はインストールできるかな?と試してみましたが、やっぱりだめでした

$ sudo dnf install php-pecl-imagick
メタデータの期限切れの最終確認: 2:43:35 前の 2025年07月16日 07時18分53秒 に実施しました。
エラー:
 問題: package php-pecl-imagick-3.7.0-1.el9.x86_64 from epel requires php(api) = 20200930-64, but none of the providers can be installed
  - package php-pecl-imagick-3.7.0-1.el9.x86_64 from epel requires php(zend-abi) = 20200930-64, but none of the providers can be installed
  - 競合するリクエスト
  - package php-common-8.0.30-3.el9_6.x86_64 from appstream is filtered out by modular filtering
(インストール不可のパッケージをスキップするには、'--skip-broken' を追加してみてください または、'--nobest' を追加して、最適候補のパッケージのみを使用しないでください)
$

2025/07/18追記

あれ??エディッタで直接画像を貼り付けようとすると「Webサーバーはこの画像に対してレスポンシブな画像サイズを生成できません。アップロードする前にJPEGまたはPNGに変換してください。」と表示されるようになった

今回の対応中にgdに関するパッケージが消されていたためだた。

必要なのは php-gdでした。

最初 gdだけかと思ってdnf install gdでインストールしたら状況が変わらなかったので「dnf install gd php-gd」が正解でした。

# dnf install gd
メタデータの期限切れの最終確認: 0:27:57 前の 2025年07月19日 18時14分35秒 に実施しました。
依存関係が解決しました。
==========================================================================================================================================
 パッケージ                               アーキテクチャー         バージョン                           リポジトリー                サイズ
==========================================================================================================================================
インストール:
 gd                                       x86_64                   2.3.2-3.el9                          appstream                   131 k
依存関係のインストール:
 dejavu-sans-fonts                        noarch                   2.37-18.el9                          baseos                      1.3 M
 fontconfig                               x86_64                   2.14.0-2.el9_1                       appstream                   274 k
 fonts-filesystem                         noarch                   1:2.0.5-7.el9.1                      baseos                      9.0 k
 jbigkit-libs                             x86_64                   2.1-23.el9                           appstream                    52 k
 langpacks-core-font-en                   noarch                   3.0-16.el9                           appstream                   9.4 k
 libX11                                   x86_64                   1.7.0-11.el9                         appstream                   646 k
 libX11-common                            noarch                   1.7.0-11.el9                         appstream                   151 k
 libXau                                   x86_64                   1.0.9-8.el9                          appstream                    30 k
 libXpm                                   x86_64                   3.5.13-10.el9                        appstream                    57 k
 libjpeg-turbo                            x86_64                   2.0.90-7.el9                         appstream                   174 k
 libtiff                                  x86_64                   4.4.0-13.el9                         appstream                   197 k
 libwebp                                  x86_64                   1.2.0-8.el9_3                        appstream                   276 k
 libxcb                                   x86_64                   1.13.1-9.el9                         appstream                   225 k
 xml-common                               noarch                   0.6.3-58.el9                         appstream                    31 k

トランザクションの概要
==========================================================================================================================================
インストール  15 パッケージ

ダウンロードサイズの合計: 3.5 M
インストール後のサイズ: 13 M
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
(1/15): jbigkit-libs-2.1-23.el9.x86_64.rpm                                                                123 kB/s |  52 kB     00:00
(2/15): gd-2.3.2-3.el9.x86_64.rpm                                                                         309 kB/s | 131 kB     00:00
(3/15): langpacks-core-font-en-3.0-16.el9.noarch.rpm                                                      257 kB/s | 9.4 kB     00:00
(4/15): fontconfig-2.14.0-2.el9_1.x86_64.rpm                                                              555 kB/s | 274 kB     00:00
(5/15): libXau-1.0.9-8.el9.x86_64.rpm                                                                     389 kB/s |  30 kB     00:00
(6/15): libX11-common-1.7.0-11.el9.noarch.rpm                                                             1.2 MB/s | 151 kB     00:00
(7/15): libX11-1.7.0-11.el9.x86_64.rpm                                                                    3.7 MB/s | 646 kB     00:00
(8/15): libXpm-3.5.13-10.el9.x86_64.rpm                                                                   1.3 MB/s |  57 kB     00:00
(9/15): libjpeg-turbo-2.0.90-7.el9.x86_64.rpm                                                             1.9 MB/s | 174 kB     00:00
(10/15): libtiff-4.4.0-13.el9.x86_64.rpm                                                                  2.0 MB/s | 197 kB     00:00
(11/15): libwebp-1.2.0-8.el9_3.x86_64.rpm                                                                 2.8 MB/s | 276 kB     00:00
(12/15): xml-common-0.6.3-58.el9.noarch.rpm                                                               715 kB/s |  31 kB     00:00
(13/15): libxcb-1.13.1-9.el9.x86_64.rpm                                                                   2.4 MB/s | 225 kB     00:00
(14/15): fonts-filesystem-2.0.5-7.el9.1.noarch.rpm                                                        136 kB/s | 9.0 kB     00:00
(15/15): dejavu-sans-fonts-2.37-18.el9.noarch.rpm                                                         4.4 MB/s | 1.3 MB     00:00
------------------------------------------------------------------------------------------------------------------------------------------
合計                                                                                                      1.5 MB/s | 3.5 MB     00:02
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                                                  1/1
  インストール中   : fonts-filesystem-1:2.0.5-7.el9.1.noarch                                                                         1/15
  インストール中   : dejavu-sans-fonts-2.37-18.el9.noarch                                                                            2/15
  インストール中   : libwebp-1.2.0-8.el9_3.x86_64                                                                                    3/15
  インストール中   : libjpeg-turbo-2.0.90-7.el9.x86_64                                                                               4/15
  インストール中   : langpacks-core-font-en-3.0-16.el9.noarch                                                                        5/15
  scriptletの実行中: xml-common-0.6.3-58.el9.noarch                                                                                  6/15
  インストール中   : xml-common-0.6.3-58.el9.noarch                                                                                  6/15
  インストール中   : fontconfig-2.14.0-2.el9_1.x86_64                                                                                7/15
  scriptletの実行中: fontconfig-2.14.0-2.el9_1.x86_64                                                                                7/15
  インストール中   : libXau-1.0.9-8.el9.x86_64                                                                                       8/15
  インストール中   : libxcb-1.13.1-9.el9.x86_64                                                                                      9/15
  インストール中   : libX11-common-1.7.0-11.el9.noarch                                                                              10/15
  インストール中   : libX11-1.7.0-11.el9.x86_64                                                                                     11/15
  インストール中   : libXpm-3.5.13-10.el9.x86_64                                                                                    12/15
  インストール中   : jbigkit-libs-2.1-23.el9.x86_64                                                                                 13/15
  インストール中   : libtiff-4.4.0-13.el9.x86_64                                                                                    14/15
  インストール中   : gd-2.3.2-3.el9.x86_64                                                                                          15/15
  scriptletの実行中: fontconfig-2.14.0-2.el9_1.x86_64                                                                               15/15
  scriptletの実行中: gd-2.3.2-3.el9.x86_64                                                                                          15/15
  検証中           : fontconfig-2.14.0-2.el9_1.x86_64                                                                                1/15
  検証中           : gd-2.3.2-3.el9.x86_64                                                                                           2/15
  検証中           : jbigkit-libs-2.1-23.el9.x86_64                                                                                  3/15
  検証中           : langpacks-core-font-en-3.0-16.el9.noarch                                                                        4/15
  検証中           : libX11-1.7.0-11.el9.x86_64                                                                                      5/15
  検証中           : libX11-common-1.7.0-11.el9.noarch                                                                               6/15
  検証中           : libXau-1.0.9-8.el9.x86_64                                                                                       7/15
  検証中           : libXpm-3.5.13-10.el9.x86_64                                                                                     8/15
  検証中           : libjpeg-turbo-2.0.90-7.el9.x86_64                                                                               9/15
  検証中           : libtiff-4.4.0-13.el9.x86_64                                                                                    10/15
  検証中           : libwebp-1.2.0-8.el9_3.x86_64                                                                                   11/15
  検証中           : libxcb-1.13.1-9.el9.x86_64                                                                                     12/15
  検証中           : xml-common-0.6.3-58.el9.noarch                                                                                 13/15
  検証中           : dejavu-sans-fonts-2.37-18.el9.noarch                                                                           14/15
  検証中           : fonts-filesystem-1:2.0.5-7.el9.1.noarch                                                                        15/15

インストール済み:
  dejavu-sans-fonts-2.37-18.el9.noarch         fontconfig-2.14.0-2.el9_1.x86_64          fonts-filesystem-1:2.0.5-7.el9.1.noarch
  gd-2.3.2-3.el9.x86_64                        jbigkit-libs-2.1-23.el9.x86_64            langpacks-core-font-en-3.0-16.el9.noarch
  libX11-1.7.0-11.el9.x86_64                   libX11-common-1.7.0-11.el9.noarch         libXau-1.0.9-8.el9.x86_64
  libXpm-3.5.13-10.el9.x86_64                  libjpeg-turbo-2.0.90-7.el9.x86_64         libtiff-4.4.0-13.el9.x86_64
  libwebp-1.2.0-8.el9_3.x86_64                 libxcb-1.13.1-9.el9.x86_64                xml-common-0.6.3-58.el9.noarch

完了しました!
# dnf install php-gd
メタデータの期限切れの最終確認: 0:29:07 前の 2025年07月19日 18時14分35秒 に実施しました。
依存関係が解決しました。
==========================================================================================================================================
 パッケージ              アーキテクチャー        バージョン                                              リポジトリー               サイズ
==========================================================================================================================================
インストール:
 php-gd                  x86_64                  8.3.19-1.module_el9.6.0+166+f262c21c                    appstream                   40 k

トランザクションの概要
==========================================================================================================================================
インストール  1 パッケージ

ダウンロードサイズの合計: 40 k
インストール後のサイズ: 113 k
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
php-gd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64.rpm                                                    361 kB/s |  40 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------
合計                                                                                                       55 kB/s |  40 kB     00:00
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                                                                  1/1
  インストール中   : php-gd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                                                               1/1
  scriptletの実行中: php-gd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                                                               1/1
  検証中           : php-gd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64                                                               1/1

インストール済み:
  php-gd-8.3.19-1.module_el9.6.0+166+f262c21c.x86_64

完了しました!
#