Skip to content

Commit c55453e

Browse files
authored
OP: update homebrew installation instructions for ROS (#2237)
* DEV: update homebrew installation instructions * Apply suggestions from code review
1 parent 16c5cf1 commit c55453e

File tree

1 file changed

+78
-1
lines changed
  • content/operate/oss_and_stack/install/install-stack

1 file changed

+78
-1
lines changed

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,36 @@ weight: 6
1717
To install Redis Open Source on macOS, use [Homebrew](https://brew.sh/).
1818
Make sure that you have [Homebrew installed](https://docs.brew.sh/Installation) before starting on the installation instructions below.
1919

20-
## Install using Homebrew
20+
## Remove any existing Redis installation files
21+
22+
If you had previously installed Redis on your system using the default Homebrew formula called "redis", you need to remove it before installing Redis Open Source 8.x.
23+
24+
Follow these steps to remove any existing Redis installation files:
25+
26+
1. Uninstall Redis:
27+
```bash
28+
brew uninstall redis
29+
```
30+
1. Next check if the `redis.conf` file is still installed:
31+
```bash
32+
ls -l $(brew --prefix)/etc/redis.conf
33+
```
34+
35+
If you get output similar to the following, then it’s still there:
36+
37+
```bash
38+
-rw-r--r--@ 1 user admin 122821 2 Oct 16:07 /opt/homebrew/etc/redis.conf
39+
```
40+
41+
Run this command to remove the file:
42+
43+
```bash
44+
rm -iv $(brew --prefix)/etc/redis.conf
45+
```
46+
47+
Next, follow the instructions in the [next section](#install-using-homebrew) to install Redis Open Source 8.x using the Redis Homebrew cask.
48+
49+
## Install using Homebrew {#install-using-homebrew}
2150

2251
First, tap the Redis Homebrew cask:
2352

@@ -76,6 +105,54 @@ Test the connection with the `ping` command:
76105
PONG
77106
{{< /highlight >}}
78107
108+
### Verify that all modules are loaded correctly
109+
110+
If you had previously installed earlier versions of Redis using Homebrew, for example 7.2.x or 7.4.x, you should test to see if all the modules are loaded correctly by running the following command. Your output should look similar to the following:
111+
112+
{{< highlight bash >}}
113+
$ redis-cli MODULE LIST
114+
1) 1) "name"
115+
2) "bf"
116+
3) "ver"
117+
4) (integer) 80200
118+
5) "path"
119+
6) "/usr/local/lib/redis/modules//redisbloom.so"
120+
7) "args"
121+
8) (empty array)
122+
2) 1) "name"
123+
2) "timeseries"
124+
3) "ver"
125+
4) (integer) 80200
126+
5) "path"
127+
6) "/usr/local/lib/redis/modules//redistimeseries.so"
128+
7) "args"
129+
8) (empty array)
130+
3) 1) "name"
131+
2) "search"
132+
3) "ver"
133+
4) (integer) 80201
134+
5) "path"
135+
6) "/usr/local/lib/redis/modules//redisearch.so"
136+
7) "args"
137+
8) (empty array)
138+
4) 1) "name"
139+
2) "vectorset"
140+
3) "ver"
141+
4) (integer) 1
142+
5) "path"
143+
6) ""
144+
7) "args"
145+
8) (empty array)
146+
5) 1) "name"
147+
2) "ReJSON"
148+
3) "ver"
149+
4) (integer) 80200
150+
5) "path"
151+
6) "/usr/local/lib/redis/modules//rejson.so"
152+
7) "args"
153+
8) (empty array)
154+
{{< /highlight >}}
155+
79156
## Stop Redis
80157
81158
Run the following command:

0 commit comments

Comments
 (0)