{
  "schema_version": 2,
  "id": "operate/oss_and_stack/install/install-stack/rpm",
  "title": "Install Redis Open Source on Linux",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/rpm/",
  "summary": "How to install Redis Open Source using RPM",
  "tags": [
    "docs",
    "operate",
    "stack",
    "oss"
  ],
  "last_updated": "2026-09-21T15:59:08+01:00",
  "page_type": "content",
  "content_hash": "900a3bab2b04a19faa90b30687e7097e5f2e6b922a40174c94fb335213ccab8e",
  "sections": [
    {
      "id": "install-redis-open-source-on-rocky-linux-8-and-9-or-almalinux-8-and-9-using-rpm",
      "title": "Install Redis Open Source on Rocky Linux 8 and 9, or AlmaLinux 8 and 9 using RPM",
      "role": "setup",
      "text": "> [!NOTE]\n> If you only need the Redis CLI (`redis-cli`) and not the full Redis Open Source distribution, see [Install redis-cli](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/install-redis-cli).\n\nFollow these steps to install Redis Open Source.\n\n1. Create the file `/etc/yum.repos.d/redis.repo` with the following contents.\n\n    - For Rocky Linux 9 and AlmaLinux 9\n    \n    [Redis]\n    name=Redis\n    baseurl=http://packages.redis.io/rpm/rockylinux9\n    enabled=1\n    gpgcheck=1\n    \n\n    - For Rocky Linux 8 and AlmaLinux 8\n    \n    [Redis]\n    name=Redis\n    baseurl=http://packages.redis.io/rpm/rockylinux8\n    enabled=1\n    gpgcheck=1\n    \n\n2. Run the following commands:\n\n    \n    curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key\n    sudo rpm --import /tmp/redis.key\n    sudo yum install redis\n    \n\nRedis will not start automatically, nor will it start at boot time. To do this, run the following commands.\n\n\nsudo systemctl enable redis\nsudo systemctl start redis"
    }
  ],
  "examples": []
}
