No available modular metadata for modular package (trying to install or update Redis)

Hello,
On Rocky Linux 9 I got the error “No available modular metadata for modular package” when trying to install or update Redis.

Thanks

> # dnf -y install redis
> 
> # Extra Packages for Enterprise Linux 9 - x86_64                                                                   360 kB/s |  20 MB     00:56
> Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64                                             2.0 kB/s | 2.5 kB     00:01
> Rocky Linux 9 - BaseOS                                                                                           505 kB/s | 2.5 MB     00:05
> Rocky Linux 9 - AppStream                                                                                        888 kB/s | 9.5 MB     00:11
> Rocky Linux 9 - CRB                                                                                              549 kB/s | 2.8 MB     00:05
> Rocky Linux 9 - Extras                                                                                           7.3 kB/s |  17 kB     00:02
> Dependencies resolved.
> 
> # Package                  Architecture              Version                                                   Repository                    Size
> 
> Installing:
> redis                    x86_64                    7.2.8-1.module+el9.6.0+32036+eb8f79e6                     appstream                    1.6 M
> 
> # Transaction Summary
> 
> Install  1 Package
> 
> ## Total download size: 1.6 M
> Installed size: 5.9 M
> Downloading Packages:
> redis-7.2.8-1.module+el9.6.0+32036+eb8f79e6.x86_64.rpm                                                           204 kB/s | 1.6 MB     00:08
> 
> Total                                                                                                            198 kB/s | 1.6 MB     00:08
> Running transaction check
> No available modular metadata for modular package ‘redis-7.2.8-1.module+el9.6.0+32036+eb8f79e6.x86_64’, it cannot be installed on the system
> The downloaded packages were saved in cache until the next successful transaction.
> You can remove cached packages by executing ‘dnf clean packages’.
> Error: No available modular metadata for modular package
dnf list redis\*
Last metadata expiration check: 0:00:47 ago on Sat 02 Aug 2025 11:33:37 AM MDT.
Installed Packages
redis.x86_64                                        6.2.19-1.el9_6                                                          @appstream
Available Packages
redis.x86_64                                        7.2.8-1.module+el9.6.0+32036+eb8f79e6                                   appstream
redis-devel.i686                                    6.2.19-1.el9_6                                                          appstream
redis-devel.x86_64                                  7.2.8-1.module+el9.6.0+32036+eb8f79e6                                   appstream
redis-doc.noarch                                    7.2.8-1.module+el9.6.0+32036+eb8f79e6                                   appstream

(1071 / 83) [~/easy-rsa]$: dnf module list redis\*
Last metadata expiration check: 0:01:08 ago on Sat 02 Aug 2025 11:33:37 AM MDT.
Rocky Linux 9 - AppStream
Name                     Stream                     Profiles                     Summary
redis                    7                          common [d]                   Redis persistent key-value database

Remi's Modular repository for Enterprise Linux 9 - x86_64
Name                     Stream                     Profiles                     Summary
redis                    remi-5.0                   common [d]                   Redis persistent key-value database
redis                    remi-6.0                   common [d]                   Redis persistent key-value database
redis                    remi-6.2                   common [d]                   Redis persistent key-value database
redis                    remi-7.0                   common [d]                   Redis persistent key-value database
redis                    remi-7.2                   common [d]                   Redis persistent key-value database
redis                    remi-8.0                   common [d]                   Redis persistent key-value database

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


dnf remove redis
dnf module enable redis:7
systemctl enable --now redis

I see the same problem while having a redis package already installed (upgrading).

$ rpm -q redis
redis-6.2.19-1.el9_6.x86_64

The dist/release tag shows that is not part of a module:stream.

Seems that the stream should not be enabled (marked as default) by default?

Same here. Redis 6.2 apparently reached end of life in February and is now deprecated. I’m not an expert on yum/dnf but this feels botched. I think the real problem is that this upgraded version was not pushed to the regular channel.

It fails to install because the module is not enabled. I resolved it by running:

dnf module enable redis

I’m not a fan of modules, so hopefully the new version will find its way to the non-module channel.