Install Redis Open Source
Install Redis Open Source on Docker, Linux, macOS, and Windows (using Docker only)
| Redis Open Source |
|---|
Quick start with Docker
The fastest way to run Redis is with Docker:
docker run -d --name redis -p 6379:6379 redisSee the Docker page for full details, including data persistence, custom configuration, and connecting with redis-cli.
Install on your platform
APT — Ubuntu / Debian
sudo apt-get install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
RPM — Rocky Linux / AlmaLinux
Create /etc/yum.repos.d/redis.repo (use rockylinux9 or rockylinux8 as appropriate):
[Redis]
name=Redis
baseurl=http://packages.redis.io/rpm/rockylinux9
enabled=1
gpgcheck=1
Then run:
curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key
sudo rpm --import /tmp/redis.key
sudo yum install redis
Snap — Ubuntu
sudo apt update
sudo apt install redis-tools
sudo snap install redis
Docker
docker run -d --name redis -p 6379:6379 redis
The latest version of Redis Open Source has been tested on the following platforms:
- Ubuntu 22.04 (Jammy Jellyfish) and 24.04 (Noble Numbat).
- Rocky Linux 8.10, 9.5.
- AlmaLinux 8.10, 9.5, and 10.1.
- Debian 12 (Bookworm) and 13 (Trixie).
- macOS 14 (Sonoma), and 15 (Sequoia).
While you can install Redis Open Source on any of the platforms listed below, you might also consider using Redis Cloud by creating a free account.
You can also download Redis Insight, a free developer companion tool with an intuitive GUI and advanced CLI, which you can use alongside Redis Open Source.