Install Redis Community Edition on Linux

How to install Redis Community Edition using RPM

Redis Community Edition

Install Redis Community Edition (CE) on Red Hat, CentOS, or Rocky Linux using RPM

See this page for a complete list of supported Red Hat/Rocky platforms. Follow these steps to install Redis CE.

  1. Create the file /etc/yum.repos.d/redis.repo with the following contents.

    [Redis]
    name=Redis
    baseurl=http://packages.redis.io/rpm/rhel9 # replace rhel9 with the appropriate value for your platform and remove this comment
    enabled=1
    gpgcheck=1
  2. Run the following commands:

    curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key
    sudo rpm --import /tmp/redis.key
    sudo yum install epel-release
    sudo yum install redis-server

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-server
RATE THIS PAGE
Back to top ↑