How to install solr 6.x with Homebrew?

1k Views Asked by At

I want to install solr 6.6.1 and solr 6.4.1 with homebrew on my Mac.

With brew install solr, by default version 8 is installed.

With brew search solr i can only find solr versions 7.7 & 8. How do i install older versions?

I would like to be able to switch between which version of the service is running with homebrew.

2

There are 2 best solutions below

1
Hector Correa On BEST ANSWER

It looks to me that Homebrew only keeps the last two versions. With Homebrew 1.9.2 I see Solr 6 and 5 whereas with Homebrew 2.1.1 I see Solr 7 and 8:

$ brew --version
Homebrew 1.9.2
Homebrew/homebrew-core (git revision b7182; last commit 2019-01-22)
Homebrew/homebrew-cask (git revision 44e62; last commit 2019-01-22)

$ brew search solr
==> Formulae
solr                                               
[email protected]                                           
homebrew/linuxbrew-core/[email protected]
[email protected]                                           
homebrew/linuxbrew-core/solr

$ brew update
# (ton's of information here)

$ brew --version
Homebrew 2.1.1
Homebrew/homebrew-core (git revision c116f; last commit 2019-04-24)
Homebrew/homebrew-cask (git revision efc7e; last commit 2019-04-24)

$ brew search solr
==> Formulae
solr                                                                         
[email protected]

I am not sure if there is a way to fetch older versions. I realize this does not fully answer the question but it was too long for a comment.

0
A. KUMAR On

One can Install [email protected] from here:

brew tap-new $USER/solr
brew extract --version=6.6 solr $USER/solr
brew search /solr/
brew install <user local formula path>