Skip to content

Instantly share code, notes, and snippets.

@ro-tex
Last active October 3, 2018 09:36
Show Gist options
  • Save ro-tex/28b7f1d8e736c98683459993c65ae97c to your computer and use it in GitHub Desktop.
Save ro-tex/28b7f1d8e736c98683459993c65ae97c to your computer and use it in GitHub Desktop.
Installing an older version of a Homebrew package:
1. `git clone git@github.com:Homebrew/homebrew-core.git`
2. Go into homebrew-core/Formula and find your formula (e.g. kibana.rb)
3. `git log kibana.rb`
4. Find the id of the commit that creates or updates that version (for version 6.0.1 that is b7f9249c69beb918f322c165595f1a2d3b1a1608).
5. `brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/b7f9249c69beb918f322c165595f1a2d3b1a1608/Formula/kibana.rb`
6. Prevent it from being updated by calling `brew pin kibana`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment