Skip to content

Commit c8ec4ce

Browse files
authored
DEV: update Ubuntu/Debian installation instructions (#568)
* DEV: update Ubuntu/Debian installation instructions * Apply changes per Yossi's review
1 parent aee0300 commit c8ec4ce

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

content/operate/oss_and_stack/install/install-redis/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ While you can install Redis on any of the platforms listed below, you might also
2020

2121
How you install Redis depends on your operating system and whether you'd like to install it bundled with Redis Stack and Redis UI. See the guide below that best fits your needs:
2222

23-
* [Install Redis from Source]({{< relref "/operate/oss_and_stack/install/install-redis/install-redis-from-source" >}})
2423
* [Install Redis on Linux]({{< relref "/operate/oss_and_stack/install/install-redis/install-redis-on-linux" >}})
2524
* [Install Redis on macOS]({{< relref "/operate/oss_and_stack/install/install-redis/install-redis-on-mac-os" >}})
2625
* [Install Redis on Windows]({{< relref "/operate/oss_and_stack/install/install-redis/install-redis-on-windows" >}})
2726
* [Install Redis with Redis Stack]({{< relref "/operate/oss_and_stack/install/install-stack/" >}})
27+
* [Install Redis from Source]({{< relref "/operate/oss_and_stack/install/install-redis/install-redis-from-source" >}})
2828

2929
Refer to [Redis Administration]({{< relref "/operate/oss_and_stack/management/admin" >}}) for detailed setup tips.
3030

content/operate/oss_and_stack/install/install-redis/install-redis-on-linux.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ Most major Linux distributions provide packages for Redis.
1414

1515
## Install on Ubuntu/Debian
1616

17+
Add the repository to the APT index, update it, and install Redis:
18+
1719
{{< highlight bash >}}
20+
sudo apt-get install lsb-release curl gpg
21+
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
22+
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
23+
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
1824
sudo apt-get update
1925
sudo apt-get install redis
2026
{{< /highlight >}}

content/operate/oss_and_stack/install/install-stack/linux.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ Learn how to install Redis Stack on Linux from the official APT repository or RP
1515
## From the official Ubuntu/Debian APT Repository
1616

1717
See [this page](https://redis.io/downloads/#redis-stack-downloads) for a complete list of supported Ubuntu/Debian platforms.
18-
Add the repository to the apt index, update it, and install Redis Stack:
18+
Add the repository to the APT index, update it, and install Redis Stack:
1919

2020
{{< highlight bash >}}
21+
sudo apt-get install lsb-release curl gpg
2122
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
2223
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
2324
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

0 commit comments

Comments
 (0)