title: How to update cocoapod version using brew
body: <p>I've installed cocoapods by this - <a href="https://apple.stackexchange.com/questions/418222/installing-cocoapods-to-macos-catalina/418230#418230">https://apple.stackexchange.com/questions/418222/installing-cocoapods-to-macos-catalina/418230#418230</a></p>
  <p>It istalled cocoapods v1.5.2. Now I want to update the version to the latest v1.10.0.</p>
  <p>So I've used -</p>
  <pre><code>brew upgrade cocoapods
  </code></pre>
  <p>I've also tried this -</p>
  <pre><code>brew install cocoapods@1.10.0
  </code></pre>
  <p>But I'm getting -</p>
  <pre><code>Error: This command updates brew itself, and does not take formula names.
  Use `brew upgrade cocoapods` instead.
  Fahims-Mac-mini:~ fahimrahman$ brew upgrade cocoapods
  Fahims-Mac-mini:~ fahimrahman$ brew upgrade cocoapods
  Fahims-Mac-mini:~ fahimrahman$ brew install cocoapods@1.10.0
  ==&gt; Searching for similarly named formulae...
  Error: No similarly named formulae found.
  Error: No available formula or cask with the name &quot;cocoapods@1.10.0&quot;.
  ==&gt; Searching for a previously deleted formula (in the last month)...
  Error: No previously deleted formula found.
  ==&gt; Searching taps on GitHub...
  Error: No formulae found in taps.
  </code></pre>
  <p>Also tried this -</p>
  <pre><code>sudo gem install cocoapods 
  </code></pre>
  <p>but still is not working on my device. So How can I update the cocoapods version using brew?</p>