-2

I need to use the old version for cmake but I can't find the formula in homebrew, is that a way to install cmake 3.12 using Homebrew?

EDITED: the solution presented here is much more objective considering the answers from the previous question.

Alexandre Rademaker
  • 2,491
  • 2
  • 16
  • 20
  • Duplicate of [Homebrew install specific version of formula?](https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula) – Simba Sep 28 '19 at 17:19

1 Answers1

2

Brief

# install cmake  3.12.4
brew install https://github.com/Homebrew/homebrew-core/raw/a3b64391ebace30b84de8e7997665a1621c0b2c0/Formula/cmake.rb

Detail

You could install it from specific formula file.

  1. Go to homebrew/homebrew-core, the place where package formula is stored.
  2. Use the search bar to search "cmake" in this repository.
  3. Find the specific commit you want.
  4. Enter it. And find the RAW url for this cmake.rb file.
  5. Install it with brew install url-to-cmake.rb.
Simba
  • 11,459
  • 3
  • 37
  • 50
  • Just found the problem is duplicate of https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula – Simba Sep 28 '19 at 17:19