This repository holds the debian/ package configuration and handles automation tasks for creating source packages and pushing them to ppa:redislabs/redis.
The Debian package is derived from work done by Chris Lea.
Run the following commands:
sudo apt-get update
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 redisTip
To install an earlier version, say 7.4.2, run the following command:
sudo apt-get install redis=6:7.4.2-1rl1~jammy1You could view the available versions by running apt policy redis.
To start the redis-server:
redis-server /etc/redis/redis.conf &Note that redis-server output is redirected to /var/log/redis/redis-server.log.
Tip
Redis will not start automatically, nor will it start at boot time. To do this, run the following commands.
sudo systemctl enable redis-server
sudo systemctl start redis-serverThis will start redis-server with /etc/redis/redis.conf.
Redis officially tests the latest version of this distribution against the following OSes:
- Ubuntu 24.04 (Noble Numbat)
- Ubuntu 22.04 (Jammy Jellyfish)
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)