{
  "schema_version": 2,
  "id": "operate/oss_and_stack/install/install-stack",
  "title": "Install Redis Open Source",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/",
  "summary": "Install Redis Open Source on Docker, Linux, macOS, and Windows (using Docker only)",
  "aliases": [
    "/install/install-stack/",
    "/install/install-stack/binaries/",
    "/operate/oss_and_stack/install/install-stack/linux/",
    "/install/install-redis/install-redis-on-linux/"
  ],
  "tags": [
    "docs",
    "operate",
    "stack",
    "oss"
  ],
  "last_updated": "2026-09-21T15:59:08+01:00",
  "children": [
    {
      "id": "operate/oss_and_stack/install/install-stack/docker",
      "summary": "How to run Redis Open Source using Docker",
      "title": "Run Redis Open Source on Docker",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/apt",
      "summary": "How to install Redis Open Source using APT",
      "title": "Install Redis Open Source on Linux",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/apt/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/rpm",
      "summary": "How to install Redis Open Source using RPM",
      "title": "Install Redis Open Source on Linux",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/rpm/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/snap",
      "summary": "How to install Redis Open Source using Snap",
      "title": "Install Redis Open Source on Linux",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/snap/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/homebrew",
      "summary": "How to install Redis Open Source on macOS using Homebrew",
      "title": "Install Redis Open Source on macOS",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/homebrew/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/windows",
      "summary": "How to run Redis Open Source on Windows",
      "title": "Run Redis Open Source on Windows using Docker",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/windows/"
    },
    {
      "id": "operate/oss_and_stack/install/install-stack/install-redis-cli",
      "summary": "How to install just the Redis CLI (redis-cli) without installing all of Redis",
      "title": "Install redis-cli",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/install-redis-cli/"
    }
  ],
  "page_type": "content",
  "content_hash": "11ebdfb43812ad5717e24ec3d6f0a59953e208e4848109ceeb001ba57e73d922",
  "sections": [
    {
      "id": "quick-start-with-docker",
      "title": "Quick start with Docker",
      "role": "overview",
      "text": "The fastest way to run Redis is with Docker:\n\n\ndocker run -d --name redis -p 6379:6379 redis\n\n\nSee the [Docker page](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker) for full details, including data persistence, custom configuration, and connecting with `redis-cli`.\n\n---"
    },
    {
      "id": "install-on-your-platform",
      "title": "Install on your platform",
      "role": "setup",
      "text": "<script>\n(function () {\n  function detectPlatformIndex() {\n    var ua = (navigator.userAgent || '').toLowerCase();\n    var pl = (navigator.platform || '').toLowerCase();\n    if (pl.indexOf('mac') !== -1 || ua.indexOf('mac os') !== -1) return 1;\n    if (pl.indexOf('win') !== -1 || ua.indexOf('windows') !== -1) return 2;\n    return 0;\n  }\n  document.addEventListener('DOMContentLoaded', function () {\n    var idx = detectPlatformIndex();\n    if (idx > 0) {\n      var radio = document.getElementById('install-by-platform-tab-' + idx);\n      if (radio) radio.checked = true;\n    }\n  });\n})();\n</script>\n\n**Linux:**\n\n#### APT — Ubuntu / Debian\n\n[code example]\n\n[Full APT installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/apt)\n\n---\n\n#### RPM — Rocky Linux / AlmaLinux\n\nCreate `/etc/yum.repos.d/redis.repo` (use `rockylinux9` or `rockylinux8` as appropriate):\n\n[code example]\n\nThen run:\n\n[code example]\n\n[Full RPM installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/rpm)\n\n---\n\n#### Snap — Ubuntu\n\n[code example]\n\n[Full Snap installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/snap)\n\n---\n\n#### Docker\n\n[code example]\n\n[Full Docker installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker)\n\n**macOS:**\n\n#### Homebrew\n\n[code example]\n\nStart Redis:\n\n[code example]\n\n[Full Homebrew installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/homebrew)\n\n---\n\n#### Docker\n\n[code example]\n\n[Full Docker installation guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker)\n\n**Windows:**\n\n#### Docker (PowerShell)\n\nMake sure Docker Desktop is installed and configured to run Linux containers, then run in PowerShell:\n\n[code example]\n\n[Full Windows / Docker guide](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/windows)\n\n---\n\n#### Memurai (preview)\n\nA preview of Redis Open Source 8.2 RC1 is available on Windows through [Memurai](https://www.memurai.com/get-memurai), the official Redis partner for Windows compatibility.\n\n\n\n---\n\nThe latest version of Redis Open Source has been tested on the following platforms:\n\n- Ubuntu 22.04 (Jammy Jellyfish), 24.04 (Noble Numbat), and 26.04 (Resolute Raccoon).\n- Rocky Linux 8.10, 9.7, and 10.1.\n- AlmaLinux 8.10, 9.7, and 10.1.\n- Debian 12.13 (Bookworm) and Debian 13.4 (Trixie).\n- Alpine 3.23.\n- macOS 14.8.4 (Sonoma), 15.7.4 (Sequoia), and 26.3 (Tahoe) - for both Intel and ARM processors.\n\nWhile 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](https://redis.com/try-free/?utm_source=redisio&utm_medium=referral&utm_campaign=2023-09-try_free&utm_content=cu-redis_cloud_users).\n\nYou can also download [Redis Insight](https://redis.io/docs/latest/operate/redisinsight/install), a free developer companion tool with an intuitive GUI and advanced CLI, which you can use alongside Redis Open Source.\n\nIf you only need the Redis CLI (`redis-cli`) to connect to a remote Redis server, 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\n<hr/>"
    }
  ],
  "examples": [
    {
      "id": "install-on-your-platform-ex0",
      "language": "bash",
      "code": "sudo apt-get install lsb-release curl gpg\ncurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\nsudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg\necho \"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\nsudo apt-get update\nsudo apt-get install redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex1",
      "language": "ini",
      "code": "[Redis]\nname=Redis\nbaseurl=http://packages.redis.io/rpm/rockylinux9\nenabled=1\ngpgcheck=1",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex2",
      "language": "bash",
      "code": "curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key\nsudo rpm --import /tmp/redis.key\nsudo yum install redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex3",
      "language": "bash",
      "code": "sudo apt update\nsudo apt install redis-tools\nsudo snap install redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex4",
      "language": "bash",
      "code": "docker run -d --name redis -p 6379:6379 redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex5",
      "language": "bash",
      "code": "brew install redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex6",
      "language": "bash",
      "code": "brew services start redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex7",
      "language": "bash",
      "code": "docker run -d --name redis -p 6379:6379 redis",
      "section_id": "install-on-your-platform"
    },
    {
      "id": "install-on-your-platform-ex8",
      "language": "powershell",
      "code": "docker run -d --name redis -p 6379:6379 redis",
      "section_id": "install-on-your-platform"
    }
  ]
}
