Skip to content

Update rpm installation instructions #1496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions content/operate/oss_and_stack/install/install-stack/rpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ description: How to install Redis Open Source using RPM
linkTitle: RPM
title: Install Redis Open Source on Linux
weight: 3
bannerText: These installation instructions are not yet complete for Redis 8 in Redis Open Source (Redis 8). For installation instructions prior to Redis 8, see [these pages]({{< relref "/operate/oss_and_stack/install/archive" >}}).
---

## Install Redis Open Source on Red Hat, CentOS, or Rocky Linux using RPM
Expand All @@ -18,26 +17,36 @@ Follow these steps to install Redis Open Source.

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

{{< highlight bash >}}
- For Rocky Linux 9 and AlmaLinux 9
{{< highlight ini >}}
[Redis]
name=Redis
baseurl=http://packages.redis.io/rpm/rockylinux9
enabled=1
gpgcheck=1
{{< /highlight >}}

- For Rocky Linux 8 and AlmaLinux 8
{{< highlight ini >}}
[Redis]
name=Redis
baseurl=http://packages.redis.io/rpm/rhel9 # replace rhel9 with the appropriate value for your platform and remove this comment
baseurl=http://packages.redis.io/rpm/rockylinux8
enabled=1
gpgcheck=1
{{< /highlight >}}

1. Run the following commands:
2. Run the following commands:

{{< highlight bash >}}
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
sudo yum install redis
{{< / highlight >}}

Redis will not start automatically, nor will it start at boot time. To do this, run the following commands.

{{< highlight bash >}}
sudo systemctl enable redis-server
sudo systemctl start redis-server
sudo systemctl enable redis
sudo systemctl start redis
{{< /highlight >}}