Last active
September 21, 2022 22:39
-
-
Save evgeniy-trebin/02fafdf03c18df4e03a4eaee1b939f11 to your computer and use it in GitHub Desktop.
How to install specific version of elasticsearch via brew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap homebrew/versions | |
brew cask install java | |
brew search elasticsearch | |
brew install [email protected] | |
brew services start [email protected] |
From the experiences of our company( big credit to our new college! ), the following should work:
- Update brew
brew update
- Modify formula
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
git checkout 5874ac8c8fab69f8a714d643581e489bcb176d92 [email protected]
- Install [email protected]
brew install openjdk@8
brew install [email protected]
If you see the following error
Error: [email protected]: Unsupported special dependency :java
Remove or comment this line( around line 15) from [email protected]
depends_on :java => "1.8+"
- Check version
brew info [email protected]
- Pin version
brew pin [email protected]
This worked well for me, thanks @xofred!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to install an older version from command:
apple$ brew install elastic/tap/[email protected]
However it returns an error:
Warning: No available formula or cask with the name "elastic/tap/[email protected]". Did you mean elastic/tap/elasticsearch-full?
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
If I do:
brew search elasticsearch
It gives me existing versions in brew:
elastic/tap/elasticsearch-full ✔ elasticsearch@6
elasticsearch
Any solution on how to install older version of elasticsearch on MAC? Can we put an older version of Elasticsearch in brew through some package?