Skip to content

Commit eb97be7

Browse files
authored
Update installation instructions
1 parent aa03d1c commit eb97be7

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,33 @@ This repository holds the `debian/` package configuration and handles automation
22

33
The Debian package is derived from work done by [Chris Lea](https://github.com/chrislea).
44

5-
## Redis Community Edition - Install using Debian Advanced Package Tool (APT)
5+
## Redis Open Source - Install using Debian Advanced Package Tool (APT)
66

7-
To install the latest version of Redis Community Edition using the Debian Advanced Package Tool (APT), please use the following command:
7+
Run the following commands:
8+
```sh
9+
sudo apt-get update
10+
sudo apt-get install lsb-release curl gpg
11+
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
12+
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
13+
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
14+
sudo apt-get update
15+
sudo apt-get install redis
16+
```
817

9-
-- TODO
18+
> [!TIP]
19+
> Redis will not start automatically, nor will it start at boot time. To do this, run the following commands.
20+
> ```sh
21+
> sudo systemctl enable redis-server
22+
> sudo systemctl start redis-server
23+
> ```
24+
25+
> [!TIP]
26+
> To install an earlier version, say `7.4.2`, run the following command:
27+
> ```sh
28+
> sudo apt-get install redis=6:7.4.2-1rl1~jammy1
29+
> ```
30+
>
31+
> You could view the available versions by running `apt policy redis`.
1032
1133
## Supported Operating Systems
1234

0 commit comments

Comments
 (0)