Skip to content

Commit f9a9be8

Browse files
committed
DEV: update homebrew installation instructions
1 parent c1dce94 commit f9a9be8

File tree

1 file changed

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

1 file changed

+74
-1
lines changed

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

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,80 @@ 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. After installation and starting Redis, you can test to see if all the modules are loaded correctly by running the following command.
48+
49+
{{< highlight bash >}}
50+
$ redis-cli MODULE LIST
51+
1) 1) "name"
52+
2) "bf"
53+
3) "ver"
54+
4) (integer) 80200
55+
5) "path"
56+
6) "/usr/local/lib/redis/modules//redisbloom.so"
57+
7) "args"
58+
8) (empty array)
59+
2) 1) "name"
60+
2) "timeseries"
61+
3) "ver"
62+
4) (integer) 80200
63+
5) "path"
64+
6) "/usr/local/lib/redis/modules//redistimeseries.so"
65+
7) "args"
66+
8) (empty array)
67+
3) 1) "name"
68+
2) "search"
69+
3) "ver"
70+
4) (integer) 80201
71+
5) "path"
72+
6) "/usr/local/lib/redis/modules//redisearch.so"
73+
7) "args"
74+
8) (empty array)
75+
4) 1) "name"
76+
2) "vectorset"
77+
3) "ver"
78+
4) (integer) 1
79+
5) "path"
80+
6) ""
81+
7) "args"
82+
8) (empty array)
83+
5) 1) "name"
84+
2) "ReJSON"
85+
3) "ver"
86+
4) (integer) 80200
87+
5) "path"
88+
6) "/usr/local/lib/redis/modules//rejson.so"
89+
7) "args"
90+
8) (empty array)
91+
{{< /highlight >}}
92+
93+
## Install using Homebrew {#install-using-homebrew}
2194

2295
First, tap the Redis Homebrew cask:
2396

0 commit comments

Comments
 (0)