Installation redis on AlmaLinux 10

Hello

As always with older versions of AlmaLinux, I installed the Epel repository so that Redis is available for installation. dnf doesn’t find Redis on AlmaLinux 10.

Now I’ve discovered that Redis is present in the “AlmaLinux Devel x86_64” repository. A dnf repolist shows that this repo isn’t installed.

Interestingly, all the “How to install Redis on AlmaLinux 10” posts don’t mention this.

What should I do now?

Thanks!

Hello
I think you can install redis using the following method.

However, since it’s in devel.repo, doesn’t that mean it might be less stable?

Please be careful if you use it.

[redadmin@alma10 ~]$ sudo yum -y install almalinux-release-devel
Last metadata expiration check: 3:20:13 ago on Sat Sep 20 20:37:32 2025.
Dependencies resolved.
=============================================================================================================================================================================================
 Package                                                  Architecture                            Version                                      Repository                               Size
=============================================================================================================================================================================================
Installing:
 almalinux-release-devel                                  x86_64                                  10-1.el10                                    extras                                  7.4 k

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

Total download size: 7.4 k
Installed size: 1.0 k
Downloading Packages:
almalinux-release-devel-10-1.el10.x86_64.rpm                                                                                                                  59 kB/s | 7.4 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        6.8 kB/s | 7.4 kB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                     1/1
  Installing       : almalinux-release-devel-10-1.el10.x86_64                                                                                                                            1/1

Installed:
  almalinux-release-devel-10-1.el10.x86_64

Complete!
[redadmin@alma10 ~]$ sudo yum list redis
AlmaLinux 10 - Devel                                                                                                                                         144 kB/s | 472 kB     00:03
Available Packages
redis.x86_64

Hello

After installing the repository AlmaLinux 10 - Devel, a dnf install redis installs “valkey-compat-redis” instead of “Redis”.

I then read up on it and learned that Valkey is an open-source fork of Redis. Apparently, there have been changes to Redis.

Perhaps this is one reason why AlmaLinux 10 offers Valkey instead of Redis.

https://valkey.io/topics/migration/

Hello
The following method uses redis, but valky might be better.

In /etc/yum.conf,

exclude=valky*

[root@alma10 ~]# cat /etc/yum.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
exclude=valkey*


[root@alma10 ~]# yum install redis
Last metadata expiration check: 2:28:47 ago on Sun Sep 21 03:22:45 2025.
Dependencies resolved.
================================================================================
 Package         Architecture     Version                 Repository       Size
================================================================================
Installing:
 redis           x86_64           7.2.4-4.el10            devel           1.5 M

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

Total download size: 1.5 M
Installed size: 5.2 M
Is this ok [y/N]: y
Downloading Packages:
redis-7.2.4-4.el10.x86_64.rpm                   1.2 MB/s | 1.5 MB     00:01
--------------------------------------------------------------------------------
Total                                           672 kB/s | 1.5 MB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Running scriptlet: redis-7.2.4-4.el10.x86_64                              1/1
  Installing       : redis-7.2.4-4.el10.x86_64                              1/1
  Running scriptlet: redis-7.2.4-4.el10.x86_64                              1/1

Installed:
  redis-7.2.4-4.el10.x86_64

Complete!

Because of License change (non OpenSource), redis was replaced by valkey (an OpenSource fork) in EL-10

EL-9.7 will also have valkey

So I recommend to use valkey from the distribution which is fully compatible from the client point of view.

I don’t know why the valkey-compat-redis or the redis package are present in the “devel” repository (probably some artefacts from the EL-10 early dev stage). redis seems outdated (EL-9 has 7.2.10, the latest 7.2), valkey-compat-redis is not supported upstream (RHEL).

If you really need and really want redis or newer version of valkey, you can read:

But these are not official packages.

1 Like

@remi

Thank you for your reply.
I understand that valkey from the distribution is the recommended way. I appreciate the clarification.

By the way, I would like to express my gratitude. In Japan, your PHP packages are widely used and have become the de facto standard. Thank you so much for your great work.

@remi

Thank you for the clarification. Let’s got for valkey :+1:

And many many installation pages for redis are now garbage :slight_smile:

@remy

On last question: Needs the package valkey-compat-redis for compatibility reasons to be installed?

Thanks!

As I said, this package is not available and not supported in RHEL

It is inherited from Fedora, mostly provides aliases for redis-* commands and a migration script (which is really not perfect)

So, it is not needed.

1 Like