Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Qt 5.6.1-1 via homebrew?

When you run brew install qt5 you'll get the latest version (right now that's 5.7.0). A week ago or so, when I ran this command version 5.6.1-1 was installed.

Now I need to install this 5.6.1-1 version again on another machine. How can I do this via brew? (trying to avoid the long compile time)

A brew search qt5 doesn't show this previous release:

$ brew search qt5

pyqt5                                                      qt5 ✔
homebrew/versions/qt52                                     homebrew/versions/qt55
like image 585
fredrik Avatar asked Oct 20 '16 08:10

fredrik


1 Answers

The qt5 formula resides here, in Github and by backtracking to a previous commit you can find a previous version of the formula. The 5.6.1-1 version can be found here.

So to install Qt 5.6.1-1 with Homebrew you can do this:

curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/fdfc724dd532345f5c6cdf47dc43e99654e6a5fd/Formula/qt5.rb
brew install ./qt5.rb
like image 95
fredrik Avatar answered Oct 04 '22 00:10

fredrik