title: Brew List and Install Specific Versions of Formula
body: <p>I would like to install 2.6.X but cannot find documentation on how to specify a formula version.  Brew is only installing the latest version of the formula.  </p>
  
  <p>I'm using the following versions of brew</p>
  
  <pre><code>Homebrew 1.8.6
  Homebrew/homebrew-core (git revision 5ea559; last commit 2018-12-18)
  Homebrew/homebrew-cask (git revision 4144b74; last commit 2018-12-18)
  </code></pre>
  
  <p>I'm upgrading from 2.2.1 and want to be pinned to 2.6.X</p>
  
  <pre><code>ls /usr/local/Cellar/ansible
  2.2.1.0_2   2.3.1.0     2.7.5
  
  brew search ansible
  ==&gt; Formulae
  ansible ✔                                 ansible-cmdb                              
  ansible-lint                              ansible@1.9                               
  ansible@2.0                               terraform-provisioner-ansible 
  ==&gt; Casks
  ansible-dk
  
  brew install ansible
  
  ansible --version
  ansible 2.7.5
  </code></pre>
  
  <p>If someone could point me to the correct docs at <a href="https://docs.brew.sh/" rel="noreferrer">https://docs.brew.sh/</a> to both list all available versions and to install specific versions that would be awesome.</p>