Skip to content

AL10: modularity is deprecated #89

Closed

Description

@arhimede

Bug Report

Q A
Version(s) AlmalLinux 10

Summary

On AL10, and not on AL9, following the FAQ page
when i switch the version of PHP with the command:

sudo dnf module switch-to php:remi-8.4 -y

I am getting a Warning
WARNING: modularity is deprecated, and functionality will be removed in a future release of DNF5.

in which way we can remove that warning ?

Activity

  1. arhimede commented on Sep 25, 2025

    @arhimede
    MemberAuthor

    In relation with this PR
    php/web-php#1452

  2. alexmerlin commented on Sep 26, 2025

    @alexmerlin
    Member

    Odd!
    Is this happening on your AL10 machine or on AL10 runing on WSL2?
    Do you have any extra package installed on your system that could interfere with your setup?


    I have an up-to-date WSL2 AL10 and when I switch PHP versions, I get no warning.

    sudo dnf module switch-to php:remi-8.3 -y

    PostgreSQL 18 for RHEL / Rocky / AlmaLinux 10 - x86_64                                                                                                                                                                                       1.8 kB/s | 659  B     00:00
    PostgreSQL 18 for RHEL / Rocky / AlmaLinux 10 - x86_64                                                                                                                                                                                       2.4 MB/s | 2.4 kB     00:00
    Importing GPG key 0x08B40D20:
     Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
     Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
     From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
    PostgreSQL 18 for RHEL / Rocky / AlmaLinux 10 - x86_64                                                                                                                                                                                        57 kB/s |  33 kB     00:00
    Dependencies resolved.
    =============================================================================================================================================================================================================================================================================
     Package                                                         Architecture                                              Version                                                                     Repository                                                       Size
    =============================================================================================================================================================================================================================================================================
    Downgrading:
     php-cli                                                         x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    2.2 M
     php-common                                                      x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    709 k
     php-fpm                                                         x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    1.9 M
     php-gd                                                          x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                     44 k
     php-intl                                                        x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    168 k
     php-mbstring                                                    x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    523 k
     php-mysqlnd                                                     x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    143 k
     php-pdo                                                         x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                     90 k
     php-pecl-zip                                                    x86_64                                                    1.22.7-1.el10.remi.8.3                                                      remi-modular                                                     61 k
     php-pgsql                                                       x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                     78 k
     php-process                                                     x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                     46 k
     php-xml                                                         x86_64                                                    8.3.26-1.el10.remi                                                          remi-modular                                                    151 k
    Switching module streams:
     php                                                                                                                       remi-8.4 -> remi-8.3
    
    Transaction Summary
    =============================================================================================================================================================================================================================================================================
    Downgrade  12 Packages
    
    Total download size: 6.1 M
    Downloading Packages:
    (1/12): php-common-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                             1.8 MB/s | 709 kB     00:00
    (2/12): php-cli-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                                5.5 MB/s | 2.2 MB     00:00
    (3/12): php-gd-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                                 837 kB/s |  44 kB     00:00
    (4/12): php-intl-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                               3.4 MB/s | 168 kB     00:00
    (5/12): php-mbstring-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                           8.1 MB/s | 523 kB     00:00
    (6/12): php-fpm-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                                3.7 MB/s | 1.9 MB     00:00
    (7/12): php-mysqlnd-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                            2.9 MB/s | 143 kB     00:00
    (8/12): php-pdo-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                                1.6 MB/s |  90 kB     00:00
    (9/12): php-pgsql-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                              1.6 MB/s |  78 kB     00:00
    (10/12): php-pecl-zip-1.22.7-1.el10.remi.8.3.x86_64.rpm                                                                                                                                                                                      1.1 MB/s |  61 kB     00:00
    (11/12): php-process-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                           1.0 MB/s |  46 kB     00:00
    (12/12): php-xml-8.3.26-1.el10.remi.x86_64.rpm                                                                                                                                                                                               2.6 MB/s | 151 kB     00:00
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                                                                                        8.9 MB/s | 6.1 MB     00:00
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                                                                                     1/1
      Running scriptlet: php-common-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                               1/24
      Downgrading      : php-common-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                               1/24
      Downgrading      : php-pdo-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                  2/24
      Downgrading      : php-mysqlnd-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                              3/24
      Downgrading      : php-pgsql-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                4/24
      Downgrading      : php-cli-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                  5/24
      Downgrading      : php-fpm-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                  6/24
      Running scriptlet: php-fpm-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                  6/24
      Downgrading      : php-gd-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                   7/24
      Downgrading      : php-intl-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 8/24
      Downgrading      : php-mbstring-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                             9/24
      Downgrading      : php-pecl-zip-1.22.7-1.el10.remi.8.3.x86_64                                                                                                                                                                                                        10/24
      Downgrading      : php-process-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                             11/24
      Downgrading      : php-xml-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 12/24
      Cleanup          : php-pecl-zip-1.22.7-1.el10.remi.8.4.x86_64                                                                                                                                                                                                        13/24
      Cleanup          : php-xml-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 14/24
      Cleanup          : php-process-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                             15/24
      Cleanup          : php-pgsql-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                               16/24
      Cleanup          : php-mysqlnd-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                             17/24
      Cleanup          : php-pdo-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 18/24
      Cleanup          : php-mbstring-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                            19/24
      Cleanup          : php-intl-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                20/24
      Cleanup          : php-gd-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                  21/24
      Running scriptlet: php-fpm-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 22/24
      Cleanup          : php-fpm-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 22/24
      Cleanup          : php-cli-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 23/24
      Cleanup          : php-common-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                              24/24
      Running scriptlet: php-common-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                              24/24
    
    Downgraded:
      php-cli-8.3.26-1.el10.remi.x86_64 php-common-8.3.26-1.el10.remi.x86_64       php-fpm-8.3.26-1.el10.remi.x86_64   php-gd-8.3.26-1.el10.remi.x86_64      php-intl-8.3.26-1.el10.remi.x86_64 php-mbstring-8.3.26-1.el10.remi.x86_64 php-mysqlnd-8.3.26-1.el10.remi.x86_64
      php-pdo-8.3.26-1.el10.remi.x86_64 php-pecl-zip-1.22.7-1.el10.remi.8.3.x86_64 php-pgsql-8.3.26-1.el10.remi.x86_64 php-process-8.3.26-1.el10.remi.x86_64 php-xml-8.3.26-1.el10.remi.x86_64
    
    Complete!
    

    sudo dnf module switch-to php:remi-8.4 -y

    Last metadata expiration check: 0:00:26 ago on Fri 26 Sep 2025 08:05:33 AM EEST.
    Dependencies resolved.
    =============================================================================================================================================================================================================================================================================
     Package                                                         Architecture                                              Version                                                                     Repository                                                       Size
    =============================================================================================================================================================================================================================================================================
    Upgrading:
     php-cli                                                         x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    2.3 M
     php-common                                                      x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    750 k
     php-fpm                                                         x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    1.9 M
     php-gd                                                          x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                     52 k
     php-intl                                                        x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    183 k
     php-mbstring                                                    x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    530 k
     php-mysqlnd                                                     x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    145 k
     php-pdo                                                         x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                     95 k
     php-pecl-zip                                                    x86_64                                                    1.22.7-1.el10.remi.8.4                                                      remi-modular                                                     61 k
     php-pgsql                                                       x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                     92 k
     php-process                                                     x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                     47 k
     php-xml                                                         x86_64                                                    8.4.13-1.el10.remi                                                          remi-modular                                                    650 k
    Switching module streams:
     php                                                                                                                       remi-8.3 -> remi-8.4
    
    Transaction Summary
    =============================================================================================================================================================================================================================================================================
    Upgrade  12 Packages
    
    Total download size: 6.8 M
    Downloading Packages:
    (1/12): php-common-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                             1.4 MB/s | 750 kB     00:00
    (2/12): php-gd-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                                 619 kB/s |  52 kB     00:00
    (3/12): php-fpm-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                                3.0 MB/s | 1.9 MB     00:00
    (4/12): php-intl-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                               2.1 MB/s | 183 kB     00:00
    (5/12): php-cli-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                                3.3 MB/s | 2.3 MB     00:00
    (6/12): php-mysqlnd-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                            2.0 MB/s | 145 kB     00:00
    (7/12): php-pdo-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                                766 kB/s |  95 kB     00:00
    (8/12): php-mbstring-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                           2.9 MB/s | 530 kB     00:00
    (9/12): php-pecl-zip-1.22.7-1.el10.remi.8.4.x86_64.rpm                                                                                                                                                                                       866 kB/s |  61 kB     00:00
    (10/12): php-process-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                           791 kB/s |  47 kB     00:00
    (11/12): php-pgsql-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                             1.3 MB/s |  92 kB     00:00
    (12/12): php-xml-8.4.13-1.el10.remi.x86_64.rpm                                                                                                                                                                                               4.8 MB/s | 650 kB     00:00
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                                                                                        5.9 MB/s | 6.8 MB     00:01
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                                                                                     1/1
      Running scriptlet: php-common-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                               1/24
      Upgrading        : php-common-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                               1/24
      Upgrading        : php-pdo-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                  2/24
      Upgrading        : php-mysqlnd-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                              3/24
      Upgrading        : php-pgsql-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                4/24
      Upgrading        : php-cli-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                  5/24
      Upgrading        : php-fpm-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                  6/24
      Running scriptlet: php-fpm-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                  6/24
      Upgrading        : php-gd-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                   7/24
      Upgrading        : php-intl-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 8/24
      Upgrading        : php-mbstring-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                             9/24
      Upgrading        : php-pecl-zip-1.22.7-1.el10.remi.8.4.x86_64                                                                                                                                                                                                        10/24
      Upgrading        : php-process-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                             11/24
      Upgrading        : php-xml-8.4.13-1.el10.remi.x86_64                                                                                                                                                                                                                 12/24
      Cleanup          : php-pecl-zip-1.22.7-1.el10.remi.8.3.x86_64                                                                                                                                                                                                        13/24
      Cleanup          : php-xml-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 14/24
      Cleanup          : php-process-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                             15/24
      Cleanup          : php-pgsql-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                               16/24
      Cleanup          : php-mysqlnd-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                             17/24
      Cleanup          : php-pdo-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 18/24
      Cleanup          : php-mbstring-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                            19/24
      Cleanup          : php-intl-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                20/24
      Cleanup          : php-gd-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                  21/24
      Running scriptlet: php-fpm-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 22/24
      Cleanup          : php-fpm-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 22/24
      Cleanup          : php-cli-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                                 23/24
      Cleanup          : php-common-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                              24/24
      Running scriptlet: php-common-8.3.26-1.el10.remi.x86_64                                                                                                                                                                                                              24/24
    
    Upgraded:
      php-cli-8.4.13-1.el10.remi.x86_64 php-common-8.4.13-1.el10.remi.x86_64       php-fpm-8.4.13-1.el10.remi.x86_64   php-gd-8.4.13-1.el10.remi.x86_64      php-intl-8.4.13-1.el10.remi.x86_64 php-mbstring-8.4.13-1.el10.remi.x86_64 php-mysqlnd-8.4.13-1.el10.remi.x86_64
      php-pdo-8.4.13-1.el10.remi.x86_64 php-pecl-zip-1.22.7-1.el10.remi.8.4.x86_64 php-pgsql-8.4.13-1.el10.remi.x86_64 php-process-8.4.13-1.el10.remi.x86_64 php-xml-8.4.13-1.el10.remi.x86_64
    
    Complete!
    
  3. arhimede commented on Sep 26, 2025

    @arhimede
    MemberAuthor

    Do you have latest version of dnf 4 ?
    Because it is a warning related to future dnf 5 which will not use modularity anymore

  4. alexmerlin commented on Sep 26, 2025

    @alexmerlin
    Member

    I did update AL10 before I left my previous comment and after that, there was no message.
    Now I updated it again and now I too see the message.

    WARNING: modularity is deprecated, and functionality will be removed in a future release of DNF5.

    I'm looking into it...

  5. arhimede commented on Sep 26, 2025

    @arhimede
    MemberAuthor

    So we should ignore this for the moment
    when dnf will be updated to version 5, then will modify the instructions accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions