September 10, 2026
Tutorials

How to Install Redis on AlmaLinux 10: A Quick Guide

how to install redis on almalinux 10

If you have tried running a simple dnf install redis on a fresh AlmaLinux 10 server, you have probably already hit a wall. The package is not there, and older tutorials written for AlmaLinux 8 or 9 will not save you here. This guide explains how to install redis on AlmaLinux 10 exactly why that happens, and walks through both ways to get Redis or a fully compatible alternative running on AlmaLinux 10, so you can pick the path that fits your situation instead of guessing.

Table of Content

Why Redis Is Missing From AlmaLinux 10 by Default

This is the part most guides skip, and it is the reason so many people get stuck. Starting with EL10-based distributions, Redis changed its licensing terms, and as a result, Redis packages were removed from the standard AlmaLinux repositories. In their place, AlmaLinux ships Valkey, an open-source fork of Redis maintained under the Linux Foundation that stays fully compatible with Redis commands, clients, and applications. In practice, this means you have two real options on AlmaLinux 10.

Option A: Install Valkey, the drop-inn Redis replacement available directly from AlmaLinux’s own repositories. This is the simplest path and works with essentially every application that expects a Redis connection.

Option B: Install actual upstream Redis through the Remi repository, which continues to package current Redis releases for RHEL-based systems. Choose this if your project specifically requires Redis branding, Redis Enterprise modules, or you have a policy reason to run the original project rather than a fork.

Both are covered below. If you are not sure which one you need, Option A is the right default for most people, since Valkey behaves identically to Redis for almost every real-world use case.

Prerequisites for Installing Redis on AlmaLinux 10

  • An Installed AlmaLinux 10 server with root or sudo access
  • At least 1 GB of RAM, though 2 GB or more is a safer baseline for anything beyond light testing
  • A basic understanding that the commands redis-cli, redis-server, and the standard Redis configuration file layout all work the same way regardless of which option you choose

Install Redis on AlmaLinux 10

To install genuine Redis Open Source on AlmaLinux 10, you must compile it from source because standard Enterprise Linux 10 repositories replace Redis with its open-source fork, Valkey. As always with older versions of AlmaLinux, I installed the Epel repository so that Redis is available for installation. Because of License change (non OpenSource), redis was replaced by valkey (an OpenSource).

To install Redis on AlmaLinux 10, follow below steps:

Step 1: Update Your System

Start with a fully current package index before installing anything:

sudo dnf update

update package manager

Option A: Install Valkey (Recommended for Most Users)

Step 2A: Install Valkey From the Default Repository

sudo dnf install valkey -y

install valkey from dnf package manager

This pulls in the Valkey server along with valkey-compat-redis, a compatibility layer that provides the familiar redis-cli and redis-server command names so existing scripts and tools continue working without modification.

Step 3A: Start and Enable the Service

sudo systemctl start valkey

sudo systemctl enable valkey

start and enable valkey service

Confirm it is running:

sudo systemctl status valkey

check valkey status

You should see active and running in the output.

Step 4A: Test the Connection

redis-cli ping

test the connection

A response of PONG confirms Valkey is accepting commands through the standard Redis client interface, which is exactly what most applications and libraries expect to see.

Skip ahead to the Configuration and Security section below, since the rest of the setup is identical for both options.

Option B: Install Upstream Redis via the Remi Repository

Step 2B: Add the Remi Repository

sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-10.rpm -y

add remi repository

Step 3B: Enable the Redis Module and Install

sudo dnf module reset redis -y

sudo dnf module enable redis:remi-7.2 -y

sudo dnf install redis -y

enable the redis module

This installs the current Redis 7.2, the actively maintained stable branch, directly from Remi’s dedicated Redis module.

Step 4B: Start and Enable the Service

sudo systemctl start redis

sudo systemctl enable redis

start and enable redis service

Confirm it is running:

sudo systemctl status redis

check redis status

Step 5B: Test the Connection

redis-cli ping

check redis connection

You should see PONG returned.

How to Install Redis on Windows, Ubuntu, macOS?

You can install Redis on Windows, Ubuntu, macOS, or other Linux distributions using the installation method supported by each operating system. To install redis on windows, you can use a compatible Redis distribution or Docker; to install redis on ubuntu or install redis on linux, use the system’s package manager. macOS users can install redis on mac through Homebrew, while Docker provides an isolated way to install redis on docker. If you only need the command-line tool to connect to and manage a Redis server, you can install redis cli separately.

Configuration and Security (Applies to Both Options)

Whichever path you took, the configuration file lives in the same place and works the same way.

Set a Password

Redis and Valkey both ship with no authentication configured out of the box, which is a real risk if the service is reachable from anywhere beyond localhost. Open the configuration file:

sudo nano /etc/redis/redis.conf

Or for Valkey:

sudo nano /etc/valkey/valkey.conf

Find the requirepass line and set a strong password:

requirepass YourStrongPasswordHere

edit redis.conf file

Restrict Network Access

By default, both Redis and Valkey bind only to localhost, which is the correct setting unless another server genuinely needs to connect. Confirm this in the same configuration file:

bind 127.0.0.1 -::1

restrict network access using redis.conf

Leave this as is unless you have a specific reason to expose the service beyond the local machine. If you do need remote access, bind it to a specific internal IP rather than opening it to all interfaces, and pair that with a firewall rule limiting access to trusted source addresses only.

Restart to Apply Changes

sudo systemctl restart valkey

Or for Redis:

sudo systemctl restart redis

restart redis service

Test that the password now works:

redis-cli -a YourStrongPasswordHere ping

ping redis

Configuring the Firewall (Only If You Need Remote Access)

AlmaLinux 10 uses firewalld by default. Redis and Valkey both use port 6379. Only open this if you genuinely need connections from another server, and scope it to a specific source address rather than the entire internet:

sudo firewall-cmd –permanent –add-rich-rule=’rule family=”ipv4″ source address=”203.0.113.10/32″ port protocol=”tcp” port=”6379″ accept’

sudo firewall-cmd –reload

configure the firewall for redis

This is all about installing Redis on AlmaLinux 10.

Troubleshooting Common Issues

dnf install redis returns nothing available. This is expected on a fresh AlmaLinux 10 install, since Redis was removed from the standard repositories. Follow Option A for Valkey or Option B for the Remi repository above.

redis-cli ping returns NOAUTH Authentication required. This means a password is set correctly. Include it in your command with the -a flag, or set the REDISCLI_AUTH environment variable so you do not need to type it every time.

The service starts, but nothing can connect from another server. Check both the bind address in the configuration file and your firewalld rules. A correct firewall rule will not help if the service itself is still bound only to localhost.

The application still throws a connection refused error. Confirm the service is actually listening on the expected port.

Conclusion

To install Redis on AlmaLinux 10, first update the system packages using the DNF package manager and then install the Redis package from the available repositories. You can also enable and start the Redis service using the “systemctl” command so it runs automatically with the system. Additionally, you can verify the Redis installation using the “redis-server –version” command. Furthermore, to make sure Redis is running correctly, use the “redis-cli ping” command, which should return “PONG” when the Redis server is working properly.

Frequently Asked Questions

1. Why can’t I find Redis in the AlmaLinux 10 repositories?

Redis changed its open-source license, and as a result, its packages were removed from the standard EL10 repositories, including AlmaLinux. AlmaLinux now ships Valkey instead, a Linux Foundation-backed fork that remains fully command- and client-compatible with Redis.

2. Is Valkey a safe replacement for Redis?

Yes, for nearly all use cases. Valkey was forked directly from the last open-source Redis release, uses the same protocol, the same command set, and the same client libraries, so most applications connect to it without any code changes at all.

3. How do I install Redis on different operating systems?
To install redis on windows, you can use a Windows-compatible Redis distribution or run Redis through Docker. For Linux systems, you can install redis on ubuntu or follow the appropriate package-manager method to install redis on linux. macOS users can install redis on mac using Homebrew.

4. How can I install Redis CLI and connect to Redis?
To install redis cli, install the Redis client package available for your operating system. Once installed, use redis-cli to connect to a running Redis server and execute commands.

5. Can I install Redis on Docker?
Yes. You can install redis on docker by running the official Redis image in a container. This is a convenient option when you want to run Redis without installing it directly on your host operating system.

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video