Skip to content

Instantly share code, notes, and snippets.

@sanae10001
Created February 14, 2017 13:21
Show Gist options
  • Save sanae10001/1ddd1fe191fe3d0041939c7b8a0066bc to your computer and use it in GitHub Desktop.
Save sanae10001/1ddd1fe191fe3d0041939c7b8a0066bc to your computer and use it in GitHub Desktop.
Brew install a specific version of a formula
Find the commit history of the desired software and version in github. e.g. "https://github.com/Homebrew/homebrew-core/commits/master/Formula/git.rb"
Click `raw` button, get raw url e.g. "https://raw.githubusercontent.com/Homebrew/homebrew-core/6f85b5c82436b2f8beb3c0fd64f36d6f466cf0f7/Formula/git.rb"
brew unlink `formula` e.g. "brew unlink git"
brew install `url`
You can use `brew switch` switch version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment