I've installed cocoapods by this - https://apple.stackexchange.com/questions/418222/installing-cocoapods-to-macos-catalina/418230#418230
It istalled cocoapods v1.5.2. Now I want to update the version to the latest v1.10.0.
So I've used -
brew upgrade cocoapods
I've also tried this -
brew install [email protected]
But I'm getting -
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 [email protected]
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "[email protected]".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Also tried this -
sudo gem install cocoapods 
but still is not working on my device. So How can I update the cocoapods version using brew?
I had the same issue and resolved. This was bugging me, since in the website https://formulae.brew.sh/formula/cocoapods latest stable is 1.10.1 but still brew installed me1.5.4
Figure out The problem by using
brew doctor
I got the below warning. Some taps are not on the default git origin branch and may not receive updates. If this is a surprise to you, check out the default branch with: git -C $(brew --repo homebrew/core) checkout master
Then, as per suggestion, I did. (Fix the related issues which comes for you)
 git -C $(brew --repo homebrew/core)
Then, brew install cocoapods installed the latest version for me.
Hope it solves.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With