Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Update: 1/15/2015</p> <ul> <li>Find the commit history of the desired software and version. e.g. I need to switch from docker version 1.4.1 to 1.3.3: <a href="https://github.com/Homebrew/homebrew-core/commits/master/Formula/docker.rb" rel="noreferrer">https://github.com/Homebrew/homebrew-core/commits/master/Formula/docker.rb</a></li> <li>View the file with this button: <img src="https://i.stack.imgur.com/A2eER.png" alt="enter image description here"> </li> <li>Click the Raw button: <img src="https://i.stack.imgur.com/WUYRZ.png" alt="List item"></li> <li>Copy the <a href="https://raw.githubusercontent.com/Homebrew/homebrew/21e59c61fb67674f9f1a60f106389d6835cce4f9/Library/Formula/docker.rb" rel="noreferrer">URL</a> (docker.rb url in this example) from address bar</li> <li><code>brew install &lt;url&gt;</code> (may have to <code>brew unlink</code> first, e.g. <code>brew unlink docker</code>)</li> <li><code>brew switch docker 1.3.3</code></li> <li>Switch back to docker 1.4.1 <code>brew switch docker 1.4.1</code></li> </ul> <p>From this <a href="https://gist.github.com/gcatlin/1847248" rel="noreferrer">gist</a></p> <pre><code>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 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload