<p>Specifically <code>kubernetes-cli</code>. I have 1.12.0 installed. I need 1.11.x, but I don't have that installed.</p>

<p>I've reviewed and tried every answer in this thread and nothing worked: <a href="https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula">Homebrew install specific version of formula?</a></p>

<p>I've tried <code>brew search</code> but there are no tapped versions:</p>

<pre><code>~ brew search kubernetes-cli
==&gt; Formulae
kubernetes-cli ✔
</code></pre>

<p>I've tried <code>brew versions</code> but that command has been removed:</p>

<pre><code>~ brew versions 
Error: Unknown command: versions
</code></pre>

<p>I've tried <code>brew install kubernetes-cli@1.11.0</code> and .1 and .2:</p>

<pre><code>~ brew install kubernetes-cli@1.11.0
Error: No available formula with the name "kubernetes-cli@1.11.0" 
==&gt; Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==&gt; Searching for similarly named formulae...
Error: No similarly named formulae found.
==&gt; Searching taps...
==&gt; Searching taps on GitHub...
Error: No formulae found in taps.
</code></pre>

<p><code>brew switch</code> requires that I have the older version installed, which I don't.</p>

<pre><code>~ brew switch kubernetes-cli 1.11.0
Error: kubernetes-cli does not have a version "1.11.0" in the Cellar.
kubernetes-cli installed versions: 1.12.0
</code></pre>

clay
<ol>
<li>Go to homebrew git repo: <a href="https://github.com/Homebrew/homebrew-core/" rel="noreferrer">https://github.com/Homebrew/homebrew-core/</a></li>
<li>Identify the commit specific to kubernetes 1.11.x version</li>
<li>Go to <code>Formula</code> folder</li>
<li>Open raw version of <code>kubernetes-cli.rb</code> file</li>
<li>Copy the raw link of the file
<code>https://raw.githubusercontent.com/Homebrew/homebrew-core/3e8f5503dde7069c5ff49b82d5e1576e6ebe3a5d/Formula/kubernetes-cli.rb</code></li>
<li>Run <code>brew install &lt;raw_link&gt;</code></li>
</ol>
