Skip to content

Commit 84a2dec

Browse files
committed
Apply code review comments and issues found whilst testing
1 parent 29b55ac commit 84a2dec

File tree

8 files changed

+203
-125
lines changed

8 files changed

+203
-125
lines changed

content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ Docker images used to produce these build notes:
2323

2424
## 1. Prepare the system
2525

26+
{{< note >}}
27+
For 8.10-minimal, you'll need to install `sudo` and `dnf` as follows:
28+
29+
```bash
30+
microdnf install bash dnf sudo -y
31+
```
32+
33+
For 8.10 (regular), you'll need to install `sudo` as follows:
34+
35+
```bash
36+
dnf install sudo -y
37+
```
38+
{{< /note >}}
39+
2640
Clean the package metadata, enable required repositories, and install development tools:
2741

2842
```bash
@@ -110,22 +124,14 @@ cmake --version
110124

111125
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
112126

113-
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
114-
115-
```bash
116-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
117-
```
118-
119-
To download the latest stable Redis release, run the following:
120-
121-
```bash
122-
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
123-
```
127+
Copy the tar(1) file to `/usr/src`.
124128

125129
Extract the source:
126130

127131
```bash
132+
cd /usr/src
128133
tar xvf redis.tar.gz
134+
rm redis.tar.gz
129135
```
130136

131137
## 5. Build Redis
@@ -161,3 +167,18 @@ To start Redis, use the following command:
161167
```bash
162168
redis-server /path/to/redis.conf
163169
```
170+
171+
To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following:
172+
173+
```
174+
redis-cli INFO
175+
...
176+
# Modules
177+
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
178+
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
179+
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]
180+
module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]
181+
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
182+
module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
183+
...
184+
```

content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ Docker images used to produce these build notes:
2323

2424
## 1. Prepare the system
2525

26+
## 1. Prepare the system
27+
28+
{{< note >}}
29+
For 9.5-minimal, you'll need to install `sudo` and `dnf` as follows:
30+
31+
```bash
32+
microdnf install bash dnf sudo -y
33+
```
34+
35+
For 9.5 (regular), you'll need to install `sudo` as follows:
36+
37+
```bash
38+
dnf install sudo -y
39+
```
40+
2641
Enable the GoReleaser repository and install required packages:
2742

2843
```bash
@@ -108,22 +123,14 @@ cmake --version
108123

109124
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
110125

111-
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
112-
113-
```bash
114-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
115-
```
116-
117-
To download the latest stable Redis release, run the following:
118-
119-
```bash
120-
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
121-
```
126+
Copy the tar(1) file to `/usr/src`.
122127

123128
Extract the source:
124129

125130
```bash
131+
cd /usr/src
126132
tar xvf redis.tar.gz
133+
rm redis.tar.gz
127134
```
128135

129136
## 5. Build Redis
@@ -159,3 +166,18 @@ To start Redis, use the following command:
159166
```bash
160167
redis-server /path/to/redis.conf
161168
```
169+
170+
To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following:
171+
172+
```
173+
redis-cli INFO
174+
...
175+
# Modules
176+
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
177+
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
178+
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]
179+
module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]
180+
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
181+
module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
182+
...
183+
```

content/operate/oss_and_stack/install/build-stack/debian-bookworm.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Follow the steps below to build Redis from source on a system running Debian 12
1313

1414
{{< note >}}
1515
Docker images used to produce these build notes:
16-
- Debian:bookworm
17-
- Debian:bookworm-slim
16+
- debian:bookworm
17+
- debian:bookworm-slim
1818
{{< /note >}}
1919

2020
## 1. Install required dependencies
@@ -51,25 +51,15 @@ sudo apt-get install -y --no-install-recommends \
5151

5252
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
5353

54-
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
55-
56-
```bash
57-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
58-
```
59-
60-
To download the latest stable Redis release, run the following:
61-
62-
```bash
63-
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
64-
```
54+
Copy the tar(1) file to `/usr/src`.
6555

6656
## 3. Extract the source archive
6757

6858
Create a directory for the source code and extract the contents into it:
6959

7060
```bash
71-
mkdir -p /usr/src/redis
72-
tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1
61+
cd /usr/src
62+
tar xvf redis.tar.gz
7363
rm redis.tar.gz
7464
```
7565

@@ -78,13 +68,14 @@ rm redis.tar.gz
7868
Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis:
7969

8070
```bash
71+
cd /usr/src/redis
8172
export BUILD_TLS=yes
8273
export BUILD_WITH_MODULES=yes
8374
export INSTALL_RUST_TOOLCHAIN=yes
8475
export DISABLE_WERRORS=yes
8576

86-
make -C /usr/src/redis -j "$(nproc)" all
87-
sudo make -C /usr/src/redis install
77+
make -j "$(nproc)" all
78+
sudo make install
8879
```
8980

9081
This builds the Redis server, CLI, and any included modules.
@@ -105,3 +96,18 @@ To start Redis, use the following command:
10596
```bash
10697
redis-server /path/to/redis.conf
10798
```
99+
100+
To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following:
101+
102+
```
103+
redis-cli INFO
104+
...
105+
# Modules
106+
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
107+
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
108+
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]
109+
module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]
110+
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
111+
module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
112+
...
113+
```

content/operate/oss_and_stack/install/build-stack/debian-bullseye.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ Follow the steps below to build Redis from source on a system running Debian 11
1313

1414
{{< note >}}
1515
Docker images used to produce these build notes:
16-
- Debian:bullseye
17-
- Debian:bullseye-slim
16+
- debian:bullseye
17+
- debian:bullseye-slim
1818
{{< /note >}}
1919

2020
## 1. Install required dependencies
2121

2222
First, update your package lists and install the development tools and libraries needed to build Redis:
2323

2424
```bash
25-
sudo apt-get update
25+
apt-get update
26+
apt-get install -y sudo
2627
sudo apt-get install -y --no-install-recommends \
2728
ca-certificates \
2829
wget \
@@ -50,25 +51,15 @@ sudo apt-get install -y --no-install-recommends \
5051

5152
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
5253

53-
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
54-
55-
```bash
56-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
57-
```
58-
59-
To download the latest stable Redis release, run the following:
60-
61-
```bash
62-
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
63-
```
54+
Copy the tar(1) file to `/usr/src`.
6455

6556
## 3. Extract the source archive
6657

6758
Create a directory for the source code and extract the contents into it:
6859

6960
```bash
70-
mkdir -p /usr/src/redis
71-
tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1
61+
cd /usr/src
62+
tar xvf redis.tar.gz
7263
rm redis.tar.gz
7364
```
7465

@@ -77,13 +68,14 @@ rm redis.tar.gz
7768
Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis:
7869

7970
```bash
71+
cd /usr/src/redis
8072
export BUILD_TLS=yes
8173
export BUILD_WITH_MODULES=yes
8274
export INSTALL_RUST_TOOLCHAIN=yes
8375
export DISABLE_WERRORS=yes
8476

85-
make -C /usr/src/redis -j "$(nproc)" all
86-
sudo make -C /usr/src/redis install
77+
make -j "$(nproc)" all
78+
sudo make install
8779
```
8880

8981
This builds the Redis server, CLI, and any included modules.
@@ -104,3 +96,18 @@ To start Redis, use the following command:
10496
```bash
10597
redis-server /path/to/redis.conf
10698
```
99+
100+
To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following:
101+
102+
```
103+
redis-cli INFO
104+
...
105+
# Modules
106+
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
107+
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
108+
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]
109+
module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]
110+
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
111+
module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
112+
...
113+
```

content/operate/oss_and_stack/install/build-stack/macos-13-14.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ tar -xf ${RUST_INSTALLER}.tar.xz
4646

4747
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
4848

49-
Download a specific version of the Redis source code from GitHub. For example, to download version `8.0`:
50-
51-
```bash
52-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
53-
```
54-
55-
To download the latest stable Redis release, run the following:
56-
57-
```bash
58-
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
59-
```
60-
6149
Extract the source:
6250

6351
```bash
@@ -98,3 +86,18 @@ export LC_ALL=en_US.UTF-8
9886
export LANG=en_US.UTF-8
9987
build_dir/bin/redis-server /path/to/redis.conf
10088
```
89+
90+
To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following:
91+
92+
```
93+
redis-cli INFO
94+
...
95+
# Modules
96+
module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
97+
module:name=search,ver=21005,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
98+
module:name=bf,ver=20802,api=1,filters=0,usedby=[],using=[],options=[]
99+
module:name=timeseries,ver=11202,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors]
100+
module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
101+
module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
102+
...
103+
```

0 commit comments

Comments
 (0)