Skip to content

Instantly share code, notes, and snippets.

@windless
Forked from gcatlin/gist:1847248
Last active December 20, 2015 09:49
Show Gist options
  • Select an option

  • Save windless/6111130 to your computer and use it in GitHub Desktop.

Select an option

Save windless/6111130 to your computer and use it in GitHub Desktop.

Revisions

  1. windless renamed this gist Jul 30, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @gcatlin gcatlin renamed this gist Feb 16, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @gcatlin gcatlin created this gist Feb 16, 2012.
    26 changes: 26 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    brew update
    brew versions FORMULA
    cd `brew --prefix`
    git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
    brew install FORMULA
    brew switch FORMULA VERSION
    git checkout -- Library/Formula/FORMULA.rb # reset formula

    ## Example: Using Subversion 1.6.17
    #
    # $ brew versions subversion
    # 1.7.3 git checkout f8bf2f3 /usr/local/Library/Formula/subversion.rb
    # 1.7.2 git checkout d89bf83 /usr/local/Library/Formula/subversion.rb
    # 1.6.17 git checkout 6e2d550 /usr/local/Library/Formula/subversion.rb
    # 1.6.16 git checkout 83ed494 /usr/local/Library/Formula/subversion.rb
    # 1.6.15 git checkout 809a18a /usr/local/Library/Formula/subversion.rb
    # 1.6.13 git checkout 7871a99 /usr/local/Library/Formula/subversion.rb
    # 1.6.12 git checkout c99b3ac /usr/local/Library/Formula/subversion.rb
    # 1.6.6 git checkout 8774131 /usr/local/Library/Formula/subversion.rb
    # 1.6.5 git checkout a82e823 /usr/local/Library/Formula/subversion.rb
    # 1.6.3 git checkout 6b6d369 /usr/local/Library/Formula/subversion.rb
    # $ cd `brew --prefix`
    # $ git checkout 6e2d550 /usr/local/Library/Formula/subversion.rb
    # $ brew install subversion
    # $ brew switch subversion 1.6.17
    # $ git checkout -- Library/Formula/subversion.rb