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

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

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

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

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パーティーのレポジトリを使う必要がある。

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


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に関するパッケージが消されていたためだた。

CUDA対応のtensorflowインストールがわかりにくい件

AlmaLinux 9環境でNVIDIA GPUでCUDAが動く環境を作ったときに、とりあえず動作テストとしてtensorflowでも動かすか、と試してみたら、ドキュメントに騙された件についてメモ

まず、最初に参照したドキュメントは TensorFlow 2 をインストールする

CPU と GPUのどちらも「pip install tensorflow」でインストールできる、と書いてある

では、インストール

[testuser@vgpu ~]$ pip list
Package         Version
--------------- --------
dbus-python     1.2.18
distlib         0.3.2
distro          1.5.0
filelock        3.7.1
gpg             1.15.1
libcomps        0.1.18
nftables        0.1
packaging       20.9
pip             21.3.1
platformdirs    2.5.4
pycairo         1.20.1
PyGObject       3.40.1
pyparsing       2.4.7
python-dateutil 2.8.1
PyYAML          5.4.1
rpm             4.16.1.3
selinux         3.6
sepolicy        3.6
setools         4.4.4
setuptools      53.0.0
six             1.15.0
systemd-python  234
virtualenv      20.21.1
[testuser@vgpu ~]$ pip install tensorflow
Defaulting to user installation because normal site-packages is not writeable
Collecting tensorflow
  Downloading tensorflow-2.19.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (644.8 MB)
     |████████████████████████████████| 644.8 MB 18 kB/s
Collecting h5py>=3.11.0
  Downloading h5py-3.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
     |████████████████████████████████| 4.6 MB 92.7 MB/s
Collecting absl-py>=1.0.0
  Downloading absl_py-2.2.2-py3-none-any.whl (135 kB)
     |████████████████████████████████| 135 kB 85.3 MB/s
Collecting typing-extensions>=3.6.6
  Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB)
     |████████████████████████████████| 45 kB 9.4 MB/s
Collecting grpcio<2.0,>=1.24.3
  Downloading grpcio-1.71.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB)
     |████████████████████████████████| 5.9 MB 87.9 MB/s
Collecting tensorflow-io-gcs-filesystem>=0.23.1
  Downloading tensorflow_io_gcs_filesystem-0.37.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB)
     |████████████████████████████████| 5.1 MB 89.6 MB/s
Collecting google-pasta>=0.1.1
  Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 27.5 MB/s
Requirement already satisfied: packaging in /usr/lib/python3.9/site-packages (from tensorflow) (20.9)
Collecting wrapt>=1.11.0
  Downloading wrapt-1.17.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (82 kB)
     |████████████████████████████████| 82 kB 5.8 MB/s
Collecting astunparse>=1.6.0
  Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting flatbuffers>=24.3.25
  Downloading flatbuffers-25.2.10-py2.py3-none-any.whl (30 kB)
Requirement already satisfied: six>=1.12.0 in /usr/lib/python3.9/site-packages (from tensorflow) (1.15.0)
Collecting requests<3,>=2.21.0
  Downloading requests-2.32.3-py3-none-any.whl (64 kB)
     |████████████████████████████████| 64 kB 21.4 MB/s
Collecting termcolor>=1.1.0
  Downloading termcolor-3.1.0-py3-none-any.whl (7.7 kB)
Collecting ml-dtypes<1.0.0,>=0.5.1
  Downloading ml_dtypes-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
     |████████████████████████████████| 4.7 MB 98 kB/s
Collecting keras>=3.5.0
  Downloading keras-3.9.2-py3-none-any.whl (1.3 MB)
     |████████████████████████████████| 1.3 MB 62.7 MB/s
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (from tensorflow) (53.0.0)
Collecting numpy<2.2.0,>=1.26.0
  Downloading numpy-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.5 MB)
     |████████████████████████████████| 19.5 MB 53 kB/s
Collecting protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.3
  Downloading protobuf-5.29.4-cp38-abi3-manylinux2014_x86_64.whl (319 kB)
     |████████████████████████████████| 319 kB 80.5 MB/s
Collecting opt-einsum>=2.3.2
  Downloading opt_einsum-3.4.0-py3-none-any.whl (71 kB)
     |████████████████████████████████| 71 kB 2.0 MB/s
Collecting tensorboard~=2.19.0
  Downloading tensorboard-2.19.0-py3-none-any.whl (5.5 MB)
     |████████████████████████████████| 5.5 MB 88.3 MB/s
Collecting gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1
  Downloading gast-0.6.0-py3-none-any.whl (21 kB)
Collecting libclang>=13.0.0
  Downloading libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl (24.5 MB)
     |████████████████████████████████| 24.5 MB 55 kB/s
Collecting wheel<1.0,>=0.23.0
  Downloading wheel-0.45.1-py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 5.3 MB/s
Collecting optree
  Downloading optree-0.15.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (397 kB)
     |████████████████████████████████| 397 kB 74.3 MB/s
Collecting namex
  Downloading namex-0.0.9-py3-none-any.whl (5.8 kB)
Collecting rich
  Downloading rich-14.0.0-py3-none-any.whl (243 kB)
     |████████████████████████████████| 243 kB 78.5 MB/s
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)
     |████████████████████████████████| 149 kB 79.2 MB/s
Collecting urllib3<3,>=1.21.1
  Downloading urllib3-2.4.0-py3-none-any.whl (128 kB)
     |████████████████████████████████| 128 kB 74.9 MB/s
Collecting idna<4,>=2.5
  Downloading idna-3.10-py3-none-any.whl (70 kB)
     |████████████████████████████████| 70 kB 33.1 MB/s
Collecting certifi>=2017.4.17
  Downloading certifi-2025.4.26-py3-none-any.whl (159 kB)
     |████████████████████████████████| 159 kB 78.6 MB/s
Collecting werkzeug>=1.0.1
  Downloading werkzeug-3.1.3-py3-none-any.whl (224 kB)
     |████████████████████████████████| 224 kB 67.2 MB/s
Collecting markdown>=2.6.8
  Downloading markdown-3.8-py3-none-any.whl (106 kB)
     |████████████████████████████████| 106 kB 55.2 MB/s
Collecting tensorboard-data-server<0.8.0,>=0.7.0
  Downloading tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl (6.6 MB)
     |████████████████████████████████| 6.6 MB 61.3 MB/s
Requirement already satisfied: pyparsing>=2.0.2 in /usr/lib/python3.9/site-packages (from packaging->tensorflow) (2.4.7)
Collecting importlib-metadata>=4.4
  Downloading importlib_metadata-8.7.0-py3-none-any.whl (27 kB)
Collecting MarkupSafe>=2.1.1
  Downloading MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20 kB)
Collecting markdown-it-py>=2.2.0
  Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
     |████████████████████████████████| 87 kB 29.4 MB/s
Collecting pygments<3.0.0,>=2.13.0
  Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)
     |████████████████████████████████| 1.2 MB 77.3 MB/s
Collecting zipp>=3.20
  Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)
Collecting mdurl~=0.1
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: zipp, mdurl, typing-extensions, pygments, numpy, MarkupSafe, markdown-it-py, importlib-metadata, wheel, werkzeug, urllib3, tensorboard-data-server, rich, protobuf, optree, namex, ml-dtypes, markdown, idna, h5py, grpcio, charset-normalizer, certifi, absl-py, wrapt, termcolor, tensorflow-io-gcs-filesystem, tensorboard, requests, opt-einsum, libclang, keras, google-pasta, gast, flatbuffers, astunparse, tensorflow
Successfully installed MarkupSafe-3.0.2 absl-py-2.2.2 astunparse-1.6.3 certifi-2025.4.26 charset-normalizer-3.4.2 flatbuffers-25.2.10 gast-0.6.0 google-pasta-0.2.0 grpcio-1.71.0 h5py-3.13.0 idna-3.10 importlib-metadata-8.7.0 keras-3.9.2 libclang-18.1.1 markdown-3.8 markdown-it-py-3.0.0 mdurl-0.1.2 ml-dtypes-0.5.1 namex-0.0.9 numpy-2.0.2 opt-einsum-3.4.0 optree-0.15.0 protobuf-5.29.4 pygments-2.19.1 requests-2.32.3 rich-14.0.0 tensorboard-2.19.0 tensorboard-data-server-0.7.2 tensorflow-2.19.0 tensorflow-io-gcs-filesystem-0.37.1 termcolor-3.1.0 typing-extensions-4.13.2 urllib3-2.4.0 werkzeug-3.1.3 wheel-0.45.1 wrapt-1.17.2 zipp-3.21.0
[testuser@vgpu ~]$

そして、テストとして「python3 -c “import tensorflow as tf; print(tf.config.list_physical_devices(‘GPU’))”」を実行

[testuser@vgpu ~]$ python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2025-05-15 11:35:31.898614: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1747276531.922384    2049 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1747276531.929813    2049 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1747276531.948919    2049 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747276531.948946    2049 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747276531.948951    2049 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747276531.948954    2049 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2025-05-15 11:35:31.954990: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
W0000 00:00:1747276535.245548    2049 gpu_device.cc:2341] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[]
[testuser@vgpu ~]$

GPU対応については https://www.tensorflow.org/install/gpu を見ろ、とある・・・

こちらでは「pip install ‘tensorflow[and-cuda]’」でインストールしろ、とある

[testuser@vgpu ~]$ pip list
Package                      Version
---------------------------- ---------
absl-py                      2.2.2
astunparse                   1.6.3
certifi                      2025.4.26
charset-normalizer           3.4.2
dbus-python                  1.2.18
distlib                      0.3.2
distro                       1.5.0
filelock                     3.7.1
flatbuffers                  25.2.10
gast                         0.6.0
google-pasta                 0.2.0
gpg                          1.15.1
grpcio                       1.71.0
h5py                         3.13.0
idna                         3.10
importlib_metadata           8.7.0
keras                        3.9.2
libclang                     18.1.1
libcomps                     0.1.18
Markdown                     3.8
markdown-it-py               3.0.0
MarkupSafe                   3.0.2
mdurl                        0.1.2
ml_dtypes                    0.5.1
namex                        0.0.9
nftables                     0.1
numpy                        2.0.2
opt_einsum                   3.4.0
optree                       0.15.0
packaging                    20.9
pip                          21.3.1
platformdirs                 2.5.4
protobuf                     5.29.4
pycairo                      1.20.1
Pygments                     2.19.1
PyGObject                    3.40.1
pyparsing                    2.4.7
python-dateutil              2.8.1
PyYAML                       5.4.1
requests                     2.32.3
rich                         14.0.0
rpm                          4.16.1.3
selinux                      3.6
sepolicy                     3.6
setools                      4.4.4
setuptools                   53.0.0
six                          1.15.0
systemd-python               234
tensorboard                  2.19.0
tensorboard-data-server      0.7.2
tensorflow                   2.19.0
tensorflow-io-gcs-filesystem 0.37.1
termcolor                    3.1.0
typing_extensions            4.13.2
urllib3                      2.4.0
virtualenv                   20.21.1
Werkzeug                     3.1.3
wheel                        0.45.1
wrapt                        1.17.2
zipp                         3.21.0
[testuser@vgpu ~]$ pip install 'tensorflow[and-cuda]'
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: tensorflow[and-cuda] in ./.local/lib/python3.9/site-packages (2.19.0)
Requirement already satisfied: flatbuffers>=24.3.25 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (25.2.10)
Requirement already satisfied: google-pasta>=0.1.1 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (0.2.0)
Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (0.6.0)
Requirement already satisfied: termcolor>=1.1.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (3.1.0)
Requirement already satisfied: wrapt>=1.11.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (1.17.2)
Requirement already satisfied: opt-einsum>=2.3.2 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (3.4.0)
Requirement already satisfied: setuptools in /usr/lib/python3.9/site-packages (from tensorflow[and-cuda]) (53.0.0)
Requirement already satisfied: typing-extensions>=3.6.6 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (4.13.2)
Requirement already satisfied: six>=1.12.0 in /usr/lib/python3.9/site-packages (from tensorflow[and-cuda]) (1.15.0)
Requirement already satisfied: numpy<2.2.0,>=1.26.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (2.0.2)
Requirement already satisfied: absl-py>=1.0.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (2.2.2)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.3 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (5.29.4)
Requirement already satisfied: requests<3,>=2.21.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (2.32.3)
Requirement already satisfied: keras>=3.5.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (3.9.2)
Requirement already satisfied: h5py>=3.11.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (3.13.0)
Requirement already satisfied: astunparse>=1.6.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (1.6.3)
Requirement already satisfied: ml-dtypes<1.0.0,>=0.5.1 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (0.5.1)
Requirement already satisfied: tensorboard~=2.19.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (2.19.0)
Requirement already satisfied: libclang>=13.0.0 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (18.1.1)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (1.71.0)
Requirement already satisfied: packaging in /usr/lib/python3.9/site-packages (from tensorflow[and-cuda]) (20.9)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in ./.local/lib/python3.9/site-packages (from tensorflow[and-cuda]) (0.37.1)
Collecting nvidia-cufft-cu12==11.2.3.61
  Downloading nvidia_cufft_cu12-11.2.3.61-py3-none-manylinux2014_x86_64.whl (192.5 MB)
     |████████████████████████████████| 192.5 MB 52 kB/s
Collecting nvidia-cublas-cu12==12.5.3.2
  Downloading nvidia_cublas_cu12-12.5.3.2-py3-none-manylinux2014_x86_64.whl (363.3 MB)
     |████████████████████████████████| 363.3 MB 50 kB/s
Collecting nvidia-cudnn-cu12==9.3.0.75
  Downloading nvidia_cudnn_cu12-9.3.0.75-py3-none-manylinux2014_x86_64.whl (577.2 MB)
     |████████████████████████████████| 577.2 MB 65 kB/s
Collecting nvidia-nvjitlink-cu12==12.5.82
  Downloading nvidia_nvjitlink_cu12-12.5.82-py3-none-manylinux2014_x86_64.whl (21.3 MB)
     |████████████████████████████████| 21.3 MB 67 kB/s
Collecting nvidia-cuda-runtime-cu12==12.5.82
  Downloading nvidia_cuda_runtime_cu12-12.5.82-py3-none-manylinux2014_x86_64.whl (895 kB)
     |████████████████████████████████| 895 kB 38.5 MB/s
Collecting nvidia-nccl-cu12==2.23.4
  Downloading nvidia_nccl_cu12-2.23.4-py3-none-manylinux2014_x86_64.whl (199.0 MB)
     |████████████████████████████████| 199.0 MB 53 kB/s
Collecting nvidia-cusparse-cu12==12.5.1.3
  Downloading nvidia_cusparse_cu12-12.5.1.3-py3-none-manylinux2014_x86_64.whl (217.6 MB)
     |████████████████████████████████| 217.6 MB 51 kB/s
Collecting nvidia-cuda-nvcc-cu12==12.5.82
  Downloading nvidia_cuda_nvcc_cu12-12.5.82-py3-none-manylinux2014_x86_64.whl (22.5 MB)
     |████████████████████████████████| 22.5 MB 56 kB/s
Collecting nvidia-cuda-cupti-cu12==12.5.82
  Downloading nvidia_cuda_cupti_cu12-12.5.82-py3-none-manylinux2014_x86_64.whl (13.8 MB)
     |████████████████████████████████| 13.8 MB 47 kB/s
Collecting nvidia-cuda-nvrtc-cu12==12.5.82
  Downloading nvidia_cuda_nvrtc_cu12-12.5.82-py3-none-manylinux2014_x86_64.whl (24.9 MB)
     |████████████████████████████████| 24.9 MB 52 kB/s
Collecting nvidia-curand-cu12==10.3.6.82
  Downloading nvidia_curand_cu12-10.3.6.82-py3-none-manylinux2014_x86_64.whl (56.3 MB)
     |████████████████████████████████| 56.3 MB 49 kB/s
Collecting nvidia-cusolver-cu12==11.6.3.83
  Downloading nvidia_cusolver_cu12-11.6.3.83-py3-none-manylinux2014_x86_64.whl (130.3 MB)
     |████████████████████████████████| 130.3 MB 51 kB/s
Requirement already satisfied: wheel<1.0,>=0.23.0 in ./.local/lib/python3.9/site-packages (from astunparse>=1.6.0->tensorflow[and-cuda]) (0.45.1)
Requirement already satisfied: rich in ./.local/lib/python3.9/site-packages (from keras>=3.5.0->tensorflow[and-cuda]) (14.0.0)
Requirement already satisfied: namex in ./.local/lib/python3.9/site-packages (from keras>=3.5.0->tensorflow[and-cuda]) (0.0.9)
Requirement already satisfied: optree in ./.local/lib/python3.9/site-packages (from keras>=3.5.0->tensorflow[and-cuda]) (0.15.0)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.9/site-packages (from requests<3,>=2.21.0->tensorflow[and-cuda]) (2025.4.26)
Requirement already satisfied: idna<4,>=2.5 in ./.local/lib/python3.9/site-packages (from requests<3,>=2.21.0->tensorflow[and-cuda]) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.local/lib/python3.9/site-packages (from requests<3,>=2.21.0->tensorflow[and-cuda]) (2.4.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.local/lib/python3.9/site-packages (from requests<3,>=2.21.0->tensorflow[and-cuda]) (3.4.2)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in ./.local/lib/python3.9/site-packages (from tensorboard~=2.19.0->tensorflow[and-cuda]) (0.7.2)
Requirement already satisfied: werkzeug>=1.0.1 in ./.local/lib/python3.9/site-packages (from tensorboard~=2.19.0->tensorflow[and-cuda]) (3.1.3)
Requirement already satisfied: markdown>=2.6.8 in ./.local/lib/python3.9/site-packages (from tensorboard~=2.19.0->tensorflow[and-cuda]) (3.8)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/lib/python3.9/site-packages (from packaging->tensorflow[and-cuda]) (2.4.7)
Requirement already satisfied: importlib-metadata>=4.4 in ./.local/lib/python3.9/site-packages (from markdown>=2.6.8->tensorboard~=2.19.0->tensorflow[and-cuda]) (8.7.0)
Requirement already satisfied: MarkupSafe>=2.1.1 in ./.local/lib/python3.9/site-packages (from werkzeug>=1.0.1->tensorboard~=2.19.0->tensorflow[and-cuda]) (3.0.2)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./.local/lib/python3.9/site-packages (from rich->keras>=3.5.0->tensorflow[and-cuda]) (2.19.1)
Requirement already satisfied: markdown-it-py>=2.2.0 in ./.local/lib/python3.9/site-packages (from rich->keras>=3.5.0->tensorflow[and-cuda]) (3.0.0)
Requirement already satisfied: zipp>=3.20 in ./.local/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.19.0->tensorflow[and-cuda]) (3.21.0)
Requirement already satisfied: mdurl~=0.1 in ./.local/lib/python3.9/site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.5.0->tensorflow[and-cuda]) (0.1.2)
Installing collected packages: nvidia-nvjitlink-cu12, nvidia-cusparse-cu12, nvidia-cublas-cu12, nvidia-nccl-cu12, nvidia-cusolver-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cudnn-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-nvcc-cu12, nvidia-cuda-cupti-cu12
Successfully installed nvidia-cublas-cu12-12.5.3.2 nvidia-cuda-cupti-cu12-12.5.82 nvidia-cuda-nvcc-cu12-12.5.82 nvidia-cuda-nvrtc-cu12-12.5.82 nvidia-cuda-runtime-cu12-12.5.82 nvidia-cudnn-cu12-9.3.0.75 nvidia-cufft-cu12-11.2.3.61 nvidia-curand-cu12-10.3.6.82 nvidia-cusolver-cu12-11.6.3.83 nvidia-cusparse-cu12-12.5.1.3 nvidia-nccl-cu12-2.23.4 nvidia-nvjitlink-cu12-12.5.82
[testuser@vgpu ~]$
[testuser@vgpu ~]$ pip list
Package                      Version
---------------------------- ---------
absl-py                      2.2.2
astunparse                   1.6.3
certifi                      2025.4.26
charset-normalizer           3.4.2
dbus-python                  1.2.18
distlib                      0.3.2
distro                       1.5.0
filelock                     3.7.1
flatbuffers                  25.2.10
gast                         0.6.0
google-pasta                 0.2.0
gpg                          1.15.1
grpcio                       1.71.0
h5py                         3.13.0
idna                         3.10
importlib_metadata           8.7.0
keras                        3.9.2
libclang                     18.1.1
libcomps                     0.1.18
Markdown                     3.8
markdown-it-py               3.0.0
MarkupSafe                   3.0.2
mdurl                        0.1.2
ml_dtypes                    0.5.1
namex                        0.0.9
nftables                     0.1
numpy                        2.0.2
nvidia-cublas-cu12           12.5.3.2
nvidia-cuda-cupti-cu12       12.5.82
nvidia-cuda-nvcc-cu12        12.5.82
nvidia-cuda-nvrtc-cu12       12.5.82
nvidia-cuda-runtime-cu12     12.5.82
nvidia-cudnn-cu12            9.3.0.75
nvidia-cufft-cu12            11.2.3.61
nvidia-curand-cu12           10.3.6.82
nvidia-cusolver-cu12         11.6.3.83
nvidia-cusparse-cu12         12.5.1.3
nvidia-nccl-cu12             2.23.4
nvidia-nvjitlink-cu12        12.5.82
opt_einsum                   3.4.0
optree                       0.15.0
packaging                    20.9
pip                          21.3.1
platformdirs                 2.5.4
protobuf                     5.29.4
pycairo                      1.20.1
Pygments                     2.19.1
PyGObject                    3.40.1
pyparsing                    2.4.7
python-dateutil              2.8.1
PyYAML                       5.4.1
requests                     2.32.3
rich                         14.0.0
rpm                          4.16.1.3
selinux                      3.6
sepolicy                     3.6
setools                      4.4.4
setuptools                   53.0.0
six                          1.15.0
systemd-python               234
tensorboard                  2.19.0
tensorboard-data-server      0.7.2
tensorflow                   2.19.0
tensorflow-io-gcs-filesystem 0.37.1
termcolor                    3.1.0
typing_extensions            4.13.2
urllib3                      2.4.0
virtualenv                   20.21.1
Werkzeug                     3.1.3
wheel                        0.45.1
wrapt                        1.17.2
zipp                         3.21.0
[testuser@vgpu ~]$

だいぶ差分があった

そして実行

[testuser@vgpu ~]$ python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2025-05-15 11:45:19.350181: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1747277119.373769    2108 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1747277119.381364    2108 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1747277119.400331    2108 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747277119.400358    2108 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747277119.400362    2108 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1747277119.400365    2108 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2025-05-15 11:45:19.406358: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
[testuser@vgpu ~]$

というわけで、tensorflowをnvidia GPU環境でインストールするときは 「pip install ‘tensorflow[and-cuda]’」でやる必要がある、という話でした

dovecot / postfix と Active Directory連携時の動作調査手法

dovecot / postfix と Active Directoryを連携させようと設定してみたところ、最初はうまく動かなかった。

この動かない原因をどうやって調べていくか、というのを解説してるものがなく、非常に難儀したのでメモ書きとして残す

dovecot, postfixの現在の設定を確認

RHEL9の場合、 /etc/dovecot および /etc/postfix に設定ファイル群があるが、コメントやサブディレクトリにあるファイルとの結合により、最終的な設定が何になっているのかわかりにくい

「doveconf」および「postconf」を実行することで最終的な設定を確認することができる

また、デフォルト値と異なる部分は何かを「doveconf -n」「postconf -n」を実行することで確認できる。

なお、doveconfの場合、ssh_keyなど一部のパラメータについては「doveconf -P」と-Pオプションをつけないと実際の値が表示されない

dovecotのログ出力を増やす

ログ出力を増やすための設定がいろいろあった(Dovecot Logging)ため、 /etc/dovecot/conf.d/99-debug.conf と1つのファイルにまとめて必要ない場合は /etc/dovecot/conf.d/99-debug._conf と.conf という名前じゃなくすることで無効化できるようにした

[root@mail dovecot]# cat /etc/dovecot/conf.d/99-debug.conf
auth_debug=yes
auth_debug_passwords=yes
auth_verbose=yes
auth_verbose_passwords=yes
verbose_proctitle=yes
verbose_ssl=yes

[root@mail dovecot]#

設定後は「systemctl restart dovecot」で設定を有効にする

なお「doveadm log find」を実行するとdovecotのログがどのファイルに出力されているかを確認することができる

[root@mail dovecot]# doveadm log find
Looking for log files from /var/log
Debug: /var/log/maillog
Info: /var/log/maillog
Warning: /var/log/maillog
Error: /var/log/maillog
Fatal: /var/log/maillog
[root@mail dovecot]#

LDAP検索のログを増やす

dovecotの場合は dovecot本体への auth_verbose=yes 設定だけでLDAPでどういったqueryを投げているかも確認できる

ただ、もっと詳細を確認したい、という場合 /etc/dovecot/dovecot-ldap.conf.ext などのLDAP接続情報を書いたファイルに「debug_level」を追加することでログを増やすこともできる。

dovecot Common LDAP Settings for both auth and sieve
iredmail Turn on debug mode in Dovecot

dovecot標準値は「debug_level=0」。ログを増やす場合は「debug_level=1」、最大量に増やす場合は「debug_level=-1」とする

postfixの場合も同様に LDAP接続情報を書いたファイル /etc/postfix/ldap-mailbox.cf などに「debuglevel」を追加することでログを増やすことができる。

postfix ldap_table – Postfix LDAP client configuration

postfix標準値は「debuglevel=0」。増やす場合は「debuglevel=1」から最大量は「debuglevel=10」とする

postfixのログ出力を増やす

Postfix Debugging Howto に記載があるが正直めんどい

/etc/postfix/master.cf の smtpd起動に関して「-v」オプションか「-D」オプションをつける、という形となる。

とはいえ、postfix/dovecotを組み合わせた場合、ActiveDirectory/LDAP側の処理をdovecot側で行うということもあるので、まずはdovecot側の動作がちゃんとするのを先に確認したほうがよい。

dovecotでの認証確認

dovecotで認証動作を確認する場合、まずは「doveadm auth login ユーザ名」を実行する

[root@mail ~]# doveadm auth login testuser1@adsample.local
Password: <パスワード入力>
passdb: testuser1@adsample.local auth succeeded
extra fields:
  user=testuser1@adsample.local
  uid=1000
  gid=1000
userdb extra fields:
  testuser1@adsample.local
  uid=1000
  gid=1000
  auth_mech=PLAIN
[root@mail ~]#

なお、「doveadm auth login testuser1@adsample.local パスワード」とパスワードをつけて実行すると入力しないで済むので検証時は便利(ログに残るので一時なパスワードにすること)

ただし、このdoveadm auth loginコマンドは模擬的に確認しているだけで、実際にログイン処理は行っていないようで、テストしたユーザのディレクトリがない場合でもディレクトリが作成されない。(ちゃんとログインした場合は自動的に作成される)

ldapsearchコマンドを使った検証

doveadm auth loginコマンドでうまく認証が実行できない場合、 ldapsearchコマンドを使って原因を調査していったりする。

その場合、 /etc/dovecot/conf.d/99-debug.conf の設定を有効にしてから行う。

期待通りに動作していない場合、ログにある下記のような「ldap」「base=~」「filter=~」という記述に注目する

May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): Server accepted connection (fd=14)
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): Sending version handshake
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: Handling LIST request
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap(): Performing userdb lookup
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap: iterate: base=cn=Users,dc=adsample,dc=local scope=subtree filter=(objectClass=posixAccount) fields=uid
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap(): Finished userdb lookup
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: Finished

上記の場合注目するのは以下の部分

base=cn=Users,dc=adsample,dc=local scope=subtree filter=(objectClass=posixAccount) fields=uid

これをldapsearchコマンドに与える

-bオプションの後ろにbase=の後ろにある「cn=Users,dc=adsample,dc=local」
-sオプションの後ろにscope=の「subtree」
そしてfilterの「objectClass=posixAccount」

ldapsearch -x -H ldaps://192.168.122.10 -D "cn=vmail,cn=Users,dc=adsample,dc=local" -w "パスワード" -b "dc=adsample,dc=local" -s subtree objectClass=posixAccount

この出力結果を確認し、fields=で指定した「uid」という項目があるかを確認します

なければfilterで指定した条件が不適切、ということとなる

fieldsで適切かなぁ、というものが出るまでfilterの条件式の調整と、fieldsで選ぶ項目の調整を行う

各ユーザで取得できるLDAPの情報が何かを調べる場合は下記のようにuserPrincipalName、もしくはsAMAccountName で検索して確認する

ldapsearch -x -H ldaps://192.168.122.10 -D "cn=vmail,cn=Users,dc=adsample,dc=local" -w "パスワード" -b "dc=adsample,dc=local" -s subtree userPrincipalName=testuser2@adsample.local

doveadmでメールボックスの状態確認

dovecotで認識しているメールボックスの状態を確認する「doveadm mailbox status」コマンド

全ユーザについてとりあえず全ステータスをとる場合はfieldをallにすればいい、というので「doveadm mailbox status -A all ‘*’」を実行してみる

[root@mail ~]# doveadm mailbox status -A all '*'
testuser1@adsample.local Trash messages=0 recent=0 uidnext=2 uidvalidity=1745978754 unseen=0 highestmodseq=5 vsize=0 guid=40b0b82833051c68570600003a0de1d0 firstsaved=never
testuser1@adsample.local INBOX messages=16 recent=0 uidnext=18 uidvalidity=1745978753 unseen=0 highestmodseq=22 vsize=613873 guid=3fa5f40281851168ee0500003a0de1d0 firstsaved=1746666817
testuser2@adsample.local Drafts messages=4 recent=0 uidnext=5 uidvalidity=1745978410 unseen=0 highestmodseq=9 vsize=2313 guid=fe4beb08b4d91268980500003a0de1d0 firstsaved=1746066862
testuser2@adsample.local Sent messages=28 recent=0 uidnext=35 uidvalidity=1745978409 unseen=0 highestmodseq=37 vsize=10545 guid=a28a5e0b7c201268cb0600003a0de1d0 firstsaved=1746018428
testuser2@adsample.local Trash messages=0 recent=0 uidnext=12 uidvalidity=1745978408 unseen=0 highestmodseq=11 vsize=0 guid=ab2c081a361e1268260600003a0de1d0 firstsaved=never
testuser2@adsample.local INBOX messages=9 recent=0 uidnext=15 uidvalidity=1745978407 unseen=0 highestmodseq=33 vsize=10810 guid=7e51333727841168d30500003a0de1d0 firstsaved=1746084330
testuser3@adsample.local INBOX messages=2 recent=2 uidnext=3 uidvalidity=1746166331 unseen=2 highestmodseq=3 vsize=1330 guid=7d83dc163b621468950800003a0de1d0 firstsaved=1746166331
[root@mail ~]#

ん?? vsizeは表示されていない?…マニュアルを再度確認すると -tオプションで messages, recent, unseen, vsizeだけを表示できるとのこと

[root@mail ~]# doveadm mailbox status -A all '*' -t
testuser1@adsample.local messages=16 recent=0 unseen=0 vsize=613873
testuser2@adsample.local messages=41 recent=0 unseen=0 vsize=23668
testuser3@adsample.local messages=2 recent=2 unseen=2 vsize=1330
testuser4@adsample.local messages=0 recent=0 unseen=0 vsize=0
vmail@adsample.local messages=0 recent=0 unseen=0 vsize=0
[root@mail ~]#

messages: メール総数
recent: Recentフラグがついてるメール数(新着メール=まだメールソフトに取り込んでない)
unseen: 未読メール数
vsize: メールの総容量(バイト)

dovecotの起動プロセス数確認

メールソフトからpop3/imapで接続すると、dovecot/pop3やdovecot/imapプロセスが起動する

例えば雑にpsコマンドの結果をとってみるとこんな感じ

[root@mail ~]# ps -ef|grep imap
vmail       2096    2088  0 17:36 ?        00:00:00 dovecot/imap [testuser2@adsample.local 192.168.122.1 IDLE]
vmail       2097    2088  0 17:36 ?        00:00:00 dovecot/imap [testuser2@adsample.local 192.168.122.1]
dovenull    2099    2088  0 17:37 ?        00:00:00 dovecot/imap-login [192.168.122.1 TLS proxy]
vmail       2101    2088  0 17:37 ?        00:00:00 dovecot/imap [testuser1@adsample.local 192.168.122.1 IDLE]
root        2118    1441  0 17:45 pts/0    00:00:00 grep --color=auto imap
[root@mail ~]#

これをdovecot側のコマンドで状態取得する場合は「doveadm service status サービス名」で取得する

[root@mail ~]# doveadm service status imap
name: imap
process_count: 3
process_avail: 0
process_limit: 1024
client_limit: 1
throttle_secs: 0
exit_failure_last: 0
exit_failures_in_sec: 0
last_drop_warning: 0
listen_pending: n
listening: y
doveadm_stop: n
process_total: 4
[root@mail ~]# doveadm service status imap-login
name: imap-login
process_count: 1
process_avail: 0
process_limit: 100
client_limit: 1
throttle_secs: 0
exit_failure_last: 0
exit_failures_in_sec: 0
last_drop_warning: 0
listen_pending: n
listening: y
doveadm_stop: n
process_total: 4
[root@mail ~]#

IMAPの場合、メールクライアントの実装によっては接続が維持されるのでprocess_limitの値に抵触しないかを注意する必要がある

Service Limits

Then client_limit needs to be set high enough to be able to serve all the needed connections (max connections=process_limit * client_limit).

acvite directory連携のdovecotでdoveadm quota get -Aが動かない

dovecot 2.2.19以降で登場した各ユーザのメールフォルダ内にあるindexファイルを使ったquotaを設定しようとした際に発見した出来事です。

doveadm quota get -Aの動作

doveadm quotaのマニュアルを見ると「doveadm quota get -A」を実行すると全ユーザの結果が表示されそうな気がするので実行してみたがされない

[root@mail dovecot]# doveadm quota get -A
Username Quota name Type Value Limit                                                   %
[root@mail dovecot]#

dovecotにdebug系ログ出力を有効にした状態での /var/log/maillog には下記のログ

May  2 11:18:59 mail dovecot[959]: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
May  2 11:18:59 mail dovecot[959]: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/lib20_auth_var_expand_crypt.so
May  2 11:18:59 mail dovecot[959]: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
May  2 11:18:59 mail dovecot[959]: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
May  2 11:18:59 mail dovecot[959]: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
May  2 11:18:59 mail dovecot[959]: auth: Debug: Read auth token secret from /run/dovecot/auth-token-secret.dat
May  2 11:18:59 mail dovecot[959]: auth: Debug: ldap(/etc/dovecot/dovecot-ldap.conf.ext): LDAP initialization took 22 msecs
May  2 11:18:59 mail dovecot[959]: auth: Debug: master in: LIST#0111
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: Loading modules from directory: /usr/lib64/dovecot/auth
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: Module loaded: /usr/lib64/dovecot/auth/lib20_auth_var_expand_crypt.so
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: Loading modules from directory: /usr/lib64/dovecot/auth
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: ldap(/etc/dovecot/dovecot-ldap.conf.ext): LDAP initialization took 14 msecs
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): Server accepted connection (fd=14)
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): Sending version handshake
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: Handling LIST request
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap(): Performing userdb lookup
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap: iterate: base=cn=Users,dc=adsample,dc=local scope=subtree filter=(objectClass=posixAccount) fields=uid
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: ldap(): Finished userdb lookup
May  2 11:18:59 mail dovecot[959]: auth-worker(1542): Debug: conn unix:auth-worker (pid=1541,uid=97): auth-worker&lt;1>: Finished

「objectClass=posixAccount」でフィルターをかけているが、Active DirectoryベースのLDAPサーバ標準では posixAccountは存在していないため、フィルター文字列を変える必要がある、という話である

確認のためldapsearchコマンドで出力がないことを確認

[root@mail dovecot]# ldapsearch -x -H ldaps://192.168.122.10 -D "cn=vmail,cn=Users,dc=adsample,dc=local" -w "パスワード" -b "dc=adsample,dc=local" -s subtree objectClass=posixAccount
# extended LDIF
#
# LDAPv3
# base &lt;dc=adsample,dc=local> with scope subtree
# filter: objectClass=posixAccount
# requesting: ALL
#

# search reference
ref: ldaps://ForestDnsZones.adsample.local/DC=ForestDnsZones,DC=adsample,DC=lo
 cal

# search reference
ref: ldaps://DomainDnsZones.adsample.local/DC=DomainDnsZones,DC=adsample,DC=lo
 cal

# search reference
ref: ldaps://adsample.local/CN=Configuration,DC=adsample,DC=local

# search result
search: 2
result: 0 Success

# numResponses: 4
# numReferences: 3
[root@mail dovecot]#

どこの設定を変えればいいのか調べていくと userdb_ldap_iterate_fieldsuserdb_ldap_iterate_filter で行っているので /etc/dovecot/dovecot-ldap.conf.ext に iterate_filter と iterate_attrs の設定を行う、ということがわかる

うまいことユーザ一覧っぽいのを取得するにはどうすればいいかな、とldapsearchコマンドをこねくり回して「ldapsearch -x -H ldaps://192.168.122.10 -D “cn=vmail,cn=Users,dc=adsample,dc=local” -w “パスワード” -b “dc=adsample,dc=local” -s subtree objectClass=user userPrincipalName」とすればいいかな、というのがわかった。

この結果をもとに、/etc/dovecot/dovecot-ldap.conf.ext に以下を追加してみたところおおむね期待通りの動作となった

iterate_filter=objectClass=user
iterate_attrs=userPrincipalName=user

これは、”objectClass=user”に該当するオブジェクトを表示させたあと、 userPrincipalName の値を dovecot上の user として認識させる、という意味合いの設定となる。

doveadm quota get -Aの実行結果

[root@mail dovecot]# doveadm quota get -A
Username                 Quota name Type    Value Limit                                          %
testuser1@adsample.local User quota STORAGE     9 10240                                          0
testuser1@adsample.local User quota MESSAGE    13     -                                          0
testuser2@adsample.local User quota STORAGE    14 10240                                          0
testuser2@adsample.local User quota MESSAGE    31     -                                          0
testuser3@adsample.local User quota STORAGE     0 10240                                          0
testuser3@adsample.local User quota MESSAGE     0     -                                          0
testuser4@adsample.local User quota STORAGE     0 10240                                          0
testuser4@adsample.local User quota MESSAGE     0     -                                          0
vmail@adsample.local     User quota STORAGE     0 10240                                          0
vmail@adsample.local     User quota MESSAGE     0     -                                          0
[root@mail dovecot]#

/etc/dovecot/conf.d/90-quota.conf を編集し、容量制限を1MBに変更

<略>
plugin {
  # 10MB quota limit
  quota = count:User quota
  quota_rule = *:storage=1M

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

この状態でメールを送って容量を増やして確認・・・

[root@mail dovecot]# doveadm quota get -A
Username                 Quota name Type    Value Limit                                          %
testuser1@adsample.local User quota STORAGE   895  1024                                         87
testuser1@adsample.local User quota MESSAGE    16     -                                          0
testuser2@adsample.local User quota STORAGE   907  1024                                         88
testuser2@adsample.local User quota MESSAGE    38     -                                          0
testuser3@adsample.local User quota STORAGE     0  1024                                          0
testuser3@adsample.local User quota MESSAGE     0     -                                          0
testuser4@adsample.local User quota STORAGE     0  1024                                          0
testuser4@adsample.local User quota MESSAGE     0     -                                          0
vmail@adsample.local     User quota STORAGE     0  1024                                          0
vmail@adsample.local     User quota MESSAGE     0     -                                          0
[root@mail dovecot]#

postfixとactive directoryを連携させるときのLDA向け設定を検証した

postfix/dovecotを使ったメールサーバを作成する際、そのサーバ上でユーザ向けメールサービスを提供する場合にLDA設定を行う必要がある。

調べると dovecot-lda を使って保存するのがよさそうではある

参考資料
 dovecot側 「Dovecot LDA」「Dovecot LDA Examples」「Dovecot LDA with Postfix

ただ、これをActive Directory/LDAPと連携させる場合の記述についてがいまいちはっきりしない。

ベースとするのは「Dovecot LDA with Postfix」の「Virtual users」にある記述で、/etc/postfix/master.cf に dovecotの記述を追加して、 /etc/postfix/main.cf に dovecot_destination_recipient_limit , virtual_mailbox_domains , virtual_transport の設定を追加する、と読める。

ただ、これだけだとメールを格納する場所について書いてないなぁ、と思いつつ試してみた

その結果、 virtual_transport=dovecot を設定した場合は、 postfix側で “virtual_mailbox_maps= ldap:/etc/postfix/ldap-mailbox.cf”とか”virtual_mailbox_base= /var/vmail”とかの設定を入れて /etc/postfix/ldap-mailbox.cf でLDAPに関する設定を書いたりする必要なく、dovecot側で行ったLDAP連携設定をもとにdovecot側で処理してくれる、ということが分かった

で・・・これの確認をするための副産物として、 virtual_transport=dovecotとしているのに virtual_mailbox_maps= ldap:/etc/postfix/ldap-mailbox.cf とかpostfix側でLDAPを直接見に行くような設定をしてしまうとどうなるの?というのを確認していた(意図せずに・・・

gihyoにあるそろそろLDAPにしてみないか?第15回「FDS+Postfixでメールサーバ管理」と「デージーネットのOSS postLDAPadmin Appendix」を参照しつついろいろ検討

まず、今回、/etc/postfix/master.cf の最下行にdovecotに関する2行を追加した

[root@mail postfix]# tail /etc/postfix/master.cf
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
[root@mail postfix]#

そして、/etc/postfix/main.cf には以下を追加した

[root@mail postfix]# tail -10 /etc/postfix/main.cf
#
#
virtual_mailbox_domains = adsample.local
virtual_mailbox_maps= ldap:/etc/postfix/ldap-mailbox.cf
virtual_mailbox_base= /var/vmail
virtual_uid_maps= static:1000
virtual_gid_maps= static:1000
virtual_transport= dovecot
dovecot_destination_recipient_limit = 1

[root@mail postfix]#

で、postfix側のLDAP連携設定は以下とした

[root@mail postfix]# cat /etc/postfix/ldap-mailbox.cf
#server_host=192.168.122.10
server_host=ldaps://192.168.122.10
#server_port=636
#search_base=dc=adsample,dc=local
search_base=cn=Users,dc=adsample,dc=local
scope=sub
#query_filter = (&(objectClass=user)(mail=%s))
query_filter = (&(objectClass=user)(userPrincipalName=%s))
result_attribute = samAccountName
result_filter = /var/mail/%s/Maildir/

bind=yes
bind_dn=vmail@adsample.local
bind_pw=パスワード
version=3
#start_tls=yes
#debuglevel=10
[root@mail postfix]#

とりあえず「debuglevel=10」というのは調査中に有効にしていた値

virtual_mailbox_maps で取得できる情報として期待されているものは メールを保存するディレクトリ名 の模様

コメントとなっている「query_filter = (&(objectClass=user)(mail=%s))」はActive Directoryベースだとmailってないので使わない。ユーザ名のみの場合は「samAccountName=%s」、ドメイン名付きの場合は「userPrincipalName=%s」かな、というところで設定

取得できてるかどうかは「postmap -q ユーザ名 ldap:/~」で確認(パッケージ postfix-ldap がインストールされていない場合、”postmap: fatal: unsupported dictionary type: ldap”というエラーになる)

[root@mail ~]# postmap -q testuser1@adsample.local ldap:/etc/postfix/ldap-mailbox.cf
/var/mail/testuser1/Maildir/
[root@mail ~]#

想定しているディレクトリ名が出力されればOK

-vオプションをつけると検索内容の詳細が確認できる。

[root@mail ~]# postmap -v -q testuser1@adsample.local ldap:/etc/postfix/ldap-mailbox.cf
postmap: name_mask: all
postmap: inet_addr_local: configured 2 IPv4 addresses
postmap: inet_addr_local: configured 2 IPv6 addresses
postmap: dict_ldap_open: Using LDAP source /etc/postfix/_ldap-mailbox.cf
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: server_host = ldaps://192.168.122.10
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: server_port = 389
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: version = 3
postmap: dict_ldap_open: /etc/postfix/_ldap-mailbox.cf server_host URL is ldaps://192.168.122.10
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: scope = sub
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: search_base = cn=Users,dc=adsample,dc=local
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: timeout = 10
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: query_filter = (&(objectClass=user)(userPrincipalName=%s))
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: result_format = <NULL>
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: result_filter = /var/mail/%s/Maildir/
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: domain =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: terminal_result_attribute =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: leaf_result_attribute =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: result_attribute = samAccountName
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: special_result_attribute =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: bind = yes
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: bind_dn = vmail@adsample.local
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: bind_pw = パスワード
postmap: cfg_get_bool: /etc/postfix/_ldap-mailbox.cf: cache = off
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: cache_expiry = -1
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: cache_size = -1
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: recursion_limit = 1000
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: expansion_limit = 0
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: size_limit = 0
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: dereference = 0
postmap: cfg_get_bool: /etc/postfix/_ldap-mailbox.cf: chase_referrals = off
postmap: cfg_get_bool: /etc/postfix/_ldap-mailbox.cf: start_tls = off
postmap: cfg_get_bool: /etc/postfix/_ldap-mailbox.cf: tls_require_cert = off
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_ca_cert_file =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_ca_cert_dir =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_cert =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_key =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_random_file =
postmap: cfg_get_str: /etc/postfix/_ldap-mailbox.cf: tls_cipher_suite =
postmap: cfg_get_int: /etc/postfix/_ldap-mailbox.cf: debuglevel = 0
postmap: dict_open: ldap:/etc/postfix/_ldap-mailbox.cf
postmap: dict_ldap_lookup: In dict_ldap_lookup
postmap: dict_ldap_lookup: No existing connection for LDAP source /etc/postfix/_ldap-mailbox.cf, reopening
postmap: dict_ldap_connect: Connecting to server ldaps://192.168.122.10
postmap: dict_ldap_connect: Actual Protocol version used is 3.
postmap: dict_ldap_connect: Binding to server ldaps://192.168.122.10 with dn vmail@adsample.local
postmap: dict_ldap_connect: Successful bind to server ldaps://192.168.122.10 with dn vmail@adsample.local
postmap: dict_ldap_connect: Cached connection handle for LDAP source /etc/postfix/_ldap-mailbox.cf
postmap: dict_ldap_lookup: /etc/postfix/_ldap-mailbox.cf: Searching with filter (&(objectClass=user)(userPrincipalName=testuser1@adsample.local))
postmap: dict_ldap_get_values[1]: Search found 1 match(es)
postmap: dict_ldap_get_values[1]: search returned 1 value(s) for requested result attribute sAMAccountName
postmap: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
postmap: dict_ldap_lookup: Search returned /var/mail/testuser1/Maildir/
/var/mail/testuser1/Maildir/
postmap: dict_ldap_close: Closed connection handle for LDAP source /etc/postfix/_ldap-mailbox.cf
[root@mail ~]#

それっぽい動作をすることを確認して、postfixを再起動してみたところ”virtual_transport= dovecot”設定を無視して postfix側でLDAPを見に行くことを確認。(/etc/postfix/ldap-mailbox.cfにdebuglevel=10を設定すると、 /var/log/maillog に詳細ログが出ているので)

どうやら、2025年5月時点では postfix/dovecotでActive Directory連携するときは、postfix側ではLDAP連携をする必要はないようだ(aliasなどをAD側で設定している場合は別)

最終的に行った設定内容

結局のところ「Dovecot LDA with Postfix」の Virutal users記載ベースで/etc/postfix/master.cfの末尾にdovecot用設定2行追加。(元ネタでは /usr/local/libexec以下にあるけどRHEL9では/usr/libexecという違いに注意)

[root@mail ~]# tail /etc/postfix/master.cf
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
[root@mail ~]#

/etc/postfix/main.cf に以下を追加

[root@mail ~]# tail -5 /etc/postfix/main.cf
#
virtual_mailbox_domains = adsample.local
virtual_transport= dovecot
dovecot_destination_recipient_limit = 1
[root@mail ~]#

なお、この時にdovecot側のLDAP連携設定は以下となっている。(メールソフト側でIMAP/POP3用に入力するユーザ名をドメイン名付きにしたい場合はuserPrincipalName、ユーザ名のみにしたい場合は samAccountName を使う)

[root@mail ~]# cat /etc/dovecot/dovecot-ldap.conf.ext
dn= cn=vmail,cn=Users,dc=adsample,dc=local
dnpass= パスワード
#pass_filter= (samAccountName=%u)
#user_filter= (samAccountName=%u)
user_filter= (userPrincipalName=%u)
pass_filter= (userPrincipalName=%u)
user_attrs = =uid=1000, =gid=1000
pass_attrs = =uid=1000, =gid=1000

auth_bind=yes
uris=ldaps://192.168.122.10
base= cn=Users,dc=adsample,dc=local
scope=subtree

[root@mail ~]# cat /etc/dovecot/conf.d/auth-ldap.conf.ext
# Authentication for LDAP users. Included from 10-auth.conf.
#
# <doc/wiki/AuthDatabase.LDAP.txt>

passdb {
  driver = ldap

  # Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext
  args = /etc/dovecot/dovecot-ldap.conf.ext
}

# "prefetch" user database means that the passdb already provided the
# needed information and there's no need to do a separate userdb lookup.
# <doc/wiki/UserDatabase.Prefetch.txt>
#userdb {
#  driver = prefetch
#}

userdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext

  # Default fields can be used to specify defaults that LDAP may override
  #default_fields = home=/home/virtual/%u
  default_fields = uid=vmail gid=vmail
}

# If you don't have any user-specific settings, you can avoid the userdb LDAP
# lookup by using userdb static instead of userdb ldap, for example:
# <doc/wiki/UserDatabase.Static.txt>
#userdb {
  #driver = static
  #args = uid=vmail gid=vmail home=/var/vmail/%u
#}
[root@mail ~]#

また /etc/dovecot/conf.d/10-mail.conf に mail_location = maildir:/var/mail/%n/Maildir という設定を追加している。

[root@mail ~]# diff -u /etc/dovecot/conf.d/10-mail.conf.org /etc/dovecot/conf.d/10-mail.conf
--- /etc/dovecot/conf.d/10-mail.conf.org        2025-04-25 03:13:54.044373479 +0900
+++ /etc/dovecot/conf.d/10-mail.conf    2025-04-30 10:59:12.661404241 +0900
@@ -27,7 +27,7 @@
 #
 # <doc/wiki/MailLocation.txt>
 #
-#mail_location =
+mail_location = maildir:/var/mail/%n/Maildir

 # If you need to set multiple mailbox locations or want to change default
 # namespace settings, you can do it by defining namespace sections.
[root@mail ~]#

エラー対処

/var/log/maillog を見てたら下記のようなpermission問題があった

May  1 18:28:19 mail dovecot[924]: auth: Debug: userdb out: USER#0111#011testuser2@adsample.local#011uid=1000#011gid=1000
May  1 18:28:19 mail dovecot[2244]: lda(testuser2@adsample.local)&lt;2244>&lt;/OWMMLM+E2jECAAAOg3h0A>: msgid=&lt;9da96806-84e5-4f26-9752-acf16b48d4dc@adsample.local>: saved mail to INBOX
May  1 18:28:19 mail postfix/pipe[2238]: AD3C12037F14: to=&lt;testuser2@adsample.local>, orig_to=&lt;testuser2@adosakana.local>, relay=dovecot, delay=0.13, delays=0.02/0/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service (lda(testuser2@adsample.local): Error: net_connect_unix(/run/dovecot/stats-writer) failed: Permission))
May  1 18:28:19 mail postfix/qmgr[2205]: AD3C12037F14: removed

エラー対処を調べると2019年1月のiredmailフォーラムの「Re: Error: net_connect_unix(/var/run/dovecot/stats-writer) failed」 が出てくる

これだと /etc/dovecot/dovecot.conf に直接追加しているが、 /etc/dovecot/conf.d/に新しいファイルを作って追加することにした

[root@mail conf.d]# vi /etc/dovecot/conf.d/12-stat.conf
[root@mail conf.d]# cat /etc/dovecot/conf.d/12-stat.conf
service stats {
    unix_listener stats-reader {
        user = vmail
        group = vmail
        mode = 0660
    }

    unix_listener stats-writer {
        user = vmail
        group = vmail
        mode = 0660
    }
}
[root@mail conf.d]# systemctl restart dovecot
[root@mail conf.d]#

これで出力されなくなった


メール送信時の細かい設定について

/etc/dovecot/dovecot-ldap.conf.ext と /etc/dovecot/conf.d/auth-ldap.conf.ext のそれぞれでuid/gidに関する設定を入れているが、それぞれの必要性について再検証

というのは、設定してるなかで、片方だけ設定を入れているとmissingログが出てたから両方入れた・・・はずだったんだけど、それって正しいの?という検証

まずは/etc/dovecot/conf.d/99-debug.conf にdebugログ出力設定を書いて 実施

[root@mail ~]# cat /etc/dovecot/conf.d/99-debug.conf
auth_debug=yes
auth_debug_passwords=yes
auth_verbose=yes
auth_verbose_passwords=yes
verbose_proctitle=yes
verbose_ssl=yes

[root@mail ~]#

ケース1

conf.d/auth-ldap.conf.ext に 「default_fields = uid=vmail gid=vmail」
dovecot-ldap.conf.ext で user_atrrs,pass_attrsの設定なし

この時メールを送信すると以下のような”result: uid missing”, “result: homeDirectory missing; uidNumber missing; gidNumber missing”ログがある

May  2 09:45:39 mail dovecot[1564]: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011session=BnUjeBw0hcjAqHoB#011lip=192.168.122.12#011rip=192.168.122.1#011lport=143#011rport=51333
May  2 09:45:39 mail dovecot[1564]: auth: Debug: client passdb out: CONT#0111
May  2 09:45:39 mail dovecot[1564]: auth: Debug: client in: CONT#0111#011AHRlc3R1c2VyMkBhZHNhbXBsZS5sb2NhbABkaWdpdGFsMTIzQSM= (previous base64 data may contain sensitive data)
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): Performing passdb lookup
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): bind search: base=cn=Users,dc=adsample,dc=local filter=(userPrincipalName=testuser2@adsample.local)
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): no fields returned by the server
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): result:  uid missing
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): Finished passdb lookup
May  2 09:45:39 mail dovecot[1564]: auth: Debug: auth(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): Auth request finished
May  2 09:45:39 mail dovecot[1564]: auth: Debug: client passdb out: OK#0111#011user=testuser2@adsample.local
May  2 09:45:39 mail dovecot[1564]: auth: Debug: master in: REQUEST#0112287206401#0111566#0111#011bef1c5eb0e8a2b05cf297e143bfb1cc6#011session_pid=1569#011request_auth_token
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): Performing userdb lookup
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): user search: base=cn=Users,dc=adsample,dc=local scope=subtree filter=(userPrincipalName=testuser2@adsample.local) fields=homeDirectory,uidNumber,gidNumber
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): no fields returned by the server
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): result:  homeDirectory missing; uidNumber missing; gidNumber missing
May  2 09:45:39 mail dovecot[1564]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<BnUjeBw0hcjAqHoB>): Finished userdb lookup
May  2 09:45:39 mail dovecot[1564]: auth: Debug: master userdb out: USER#0112287206401#011testuser2@adsample.local#011uid=1000#011gid=1000#011auth_mech=PLAIN#011auth_token=aaa072efd8fc1ceb4051c9c51b1fdbc9437e7f81

ケース2

conf.d/auth-ldap.conf.ext に default_fields 設定なし
dovecot-ldap.conf.ext で “user_attrs = =uid=1000, =gid=1000″,”pass_attrs = =uid=1000, =gid=1000” 設定あり

この場合、ログに xxx missing が出ない?

May  2 09:54:48 mail dovecot[959]: auth: Debug: client in: CONT#0111#011AHRlc3R1c2VyMkBhZHNhbXBsZS5sb2NhbABkaWdpdGFsMTIzQSM= (previous base64 data may contain sensitive data)
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): Performing passdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): bind search: base=cn=Users,dc=adsample,dc=local filter=(userPrincipalName=testuser2@adsample.local)
May  2 09:54:48 mail dovecot[959]: auth: Debug: master in: USER#0111#011testuser1@adsample.local#011service=lda
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser1@adsample.local): Performing userdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser1@adsample.local): user search: base=cn=Users,dc=adsample,dc=local scope=subtree filter=(userPrincipalName=testuser1@adsample.local) fields=
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): result: objectClass=top,top,top,top cn=testuser2 givenName=testuser2 distinguishedName=CN=testuser2,CN=Users,DC=adsample,DC=local instanceType=4 whenCreated=20250417094639.0Z whenChanged=20250430015944.0Z displayName=testuser2 uSNCreated=12616 uSNChanged=40983 name=testuser2 objectGUID=�u&#016$|-E�Z#034\O?�#036 userAccountControl=66048 badPwdCount=0 codePage=0 countryCode=0 badPasswordTime=133893655225944004 lastLogoff=0 lastLogon=133894260848965097 pwdLastSet=133893567990887154 primaryGroupID=513 objectSid=<no values> accountExpires=9223372036854775807 logonCount=16 sAMAccountName=testuser2 sAMAccountType=805306368 userPrincipalName=testuser2@adsample.local objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=adsample,DC=local dSCorePropagationData=20250418015428.0Z,20250418015428.0Z lastLogonTimestamp=133904519848472342; objectGUID,uSNCreated,objectCategory,objectClass,primaryGroupID,cn,givenName,objectSid,sAMAccountType,dSCorePropagationData,userAccountControl,name,codePage,lastLogon,logonCount,countryCode,lastLogoff,uSNChanged,pwdLastSet,distinguishedName,sAMAccountName,whenChanged,userPrincipalName,instanceType,badPwdCount,accountExpires,whenCreated,displayName,badPasswordTime,lastLogonTimestamp unused
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser1@adsample.local): result: objectClass=top,top,top,top cn=testuser1 givenName=testuser1 distinguishedName=CN=testuser1,CN=Users,DC=adsample,DC=local instanceType=4 whenCreated=20250417094618.0Z whenChanged=20250425001141.0Z displayName=testuser1 uSNCreated=12609 uSNChanged=36883 name=testuser1 objectGUID=#037��#�!#020F�j#020#010��#011x userAccountControl=66048 badPwdCount=0 codePage=0 countryCode=0 badPasswordTime=133900339076624909 lastLogoff=0 lastLogon=133900339256453379 pwdLastSet=133893567784742554 primaryGroupID=513 objectSid=<no values> accountExpires=9223372036854775807 logonCount=0 sAMAccountName=testuser1 sAMAccountType=805306368 userPrincipalName=testuser1@adsample.local objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=adsample,DC=local dSCorePropagationData=20250418015428.0Z,20250418015428.0Z lastLogonTimestamp=133900135017739905 mail=testuser1@example.com; objectGUID,uSNCreated,objectCategory,objectClass,primaryGroupID,cn,givenName,objectSid,sAMAccountType,dSCorePropagationData,userAccountControl,name,mail,codePage,lastLogon,logonCount,countryCode,lastLogoff,uSNChanged,pwdLastSet,distinguishedName,sAMAccountName,whenChanged,userPrincipalName,instanceType,badPwdCount,accountExpires,whenCreated,displayName,badPasswordTime,lastLogonTimestamp unused
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser1@adsample.local): Finished userdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: userdb out: USER#0111#011testuser1@adsample.local#011uid=1000#011gid=1000
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): Finished passdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: auth(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): Auth request finished
May  2 09:54:48 mail dovecot[959]: auth: Debug: client passdb out: OK#0111#011user=testuser2@adsample.local#011uid=1000#011gid=1000
May  2 09:54:48 mail dovecot[1423]: lda(testuser1@adsample.local)<1423><jFPYJdgXFGiPBQAAOg3h0A>: msgid=<c923fd79-8135-46e3-aa56-afd1a1282ff8@adsample.local>: saved mail to INBOX
May  2 09:54:48 mail postfix/pipe[1422]: 7FF342020373: to=<testuser1@adsample.local>, orig_to=<testuser1@adosakana.local>, relay=dovecot, delay=0.15, delays=0.03/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot service)
May  2 09:54:48 mail postfix/qmgr[884]: 7FF342020373: removed
May  2 09:54:48 mail dovecot[959]: auth: Debug: master in: REQUEST#0113980787713#0111424#0111#011d2548dbb496c7cf3c62e2637869d2d69#011session_pid=1425#011request_auth_token
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): Performing userdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): user search: base=cn=Users,dc=adsample,dc=local scope=subtree filter=(userPrincipalName=testuser2@adsample.local) fields=
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): result: objectClass=top,top,top,top cn=testuser2 givenName=testuser2 distinguishedName=CN=testuser2,CN=Users,DC=adsample,DC=local instanceType=4 whenCreated=20250417094639.0Z whenChanged=20250430015944.0Z displayName=testuser2 uSNCreated=12616 uSNChanged=40983 name=testuser2 objectGUID=�u&#016$|-E�Z#034\O?�#036 userAccountControl=66048 badPwdCount=0 codePage=0 countryCode=0 badPasswordTime=133893655225944004 lastLogoff=0 lastLogon=133894260848965097 pwdLastSet=133893567990887154 primaryGroupID=513 objectSid=<no values> accountExpires=9223372036854775807 logonCount=16 sAMAccountName=testuser2 sAMAccountType=805306368 userPrincipalName=testuser2@adsample.local objectCategory=CN=Person,CN=Schema,CN=Configuration,DC=adsample,DC=local dSCorePropagationData=20250418015428.0Z,20250418015428.0Z lastLogonTimestamp=133904519848472342; objectGUID,uSNCreated,objectCategory,objectClass,primaryGroupID,cn,givenName,objectSid,sAMAccountType,dSCorePropagationData,userAccountControl,name,codePage,lastLogon,logonCount,countryCode,lastLogoff,uSNChanged,pwdLastSet,distinguishedName,sAMAccountName,whenChanged,userPrincipalName,instanceType,badPwdCount,accountExpires,whenCreated,displayName,badPasswordTime,lastLogonTimestamp unused
May  2 09:54:48 mail dovecot[959]: auth: Debug: ldap(testuser2@adsample.local,192.168.122.1,<D2PcmBw0S8rAqHoB>): Finished userdb lookup
May  2 09:54:48 mail dovecot[959]: auth: Debug: master userdb out: USER#0113980787713#011testuser2@adsample.local#011uid=1000#011gid=1000#011auth_mech=PLAIN#011auth_token=68518eb1e5a886522b5dcabaae828704633386c9

missing 出力がない??

そもそも、同じログレベル出力なのに、出力された内容に差がありすぎるんですが・・・

dovecot-ldap.conf.ext に “user_attrs = =uid=1000, =gid=1000″,”pass_attrs = =uid=1000, =gid=1000” を設定するだけでいける?

モバイルバージョンを終了