How to uninstall Homebrew Cask
Solution 1
As of Homebrew version 0.9.5, it appears that brew search
will find items in Caskroom/cask/
without actually having Homebrew Cask installed. You can also install them, but this will actually install brew-cask
as a dependency along the way.
Try:
brew install Caskroom/cask/atext
Solution 2
For the current version of Brew:
$ brew uninstall --cask yed
For older versions of Brew:
$ brew cask uninstall yed
the result:
==> Removing App symlink: '/Users/user/Applications/yEd.app'
Solution 3
Command the terminal to "untap" at the prompt [MacOS Catalina 10.15.2]
Run
brew untap homebrew/cask-fonts
Expected output
Untapping homebrew/cask-fonts...
Untapped 1571 casks (1,713 files, 11.4MB)
![ehsanullahjan](https://i.stack.imgur.com/pByn5.png?s=256&g=1)
ehsanullahjan
Son, husband, dad, programmer, gamer… Certainly a class that violates the SRP ;)
Updated on March 10, 2021Comments
-
ehsanullahjan over 3 years
I installed Homebrew Cask for kicks as described at http://caskroom.io/. It boils down to the following command:
$ brew install caskroom/cask/brew-cask $ brew tap caskroom/versions
Homebrew Cask installed and everything was fine. Then I uninstalled Homebrew Cask like so:
$ brew untap caskroom/versions $ brew uninstall brew-cask
Here are the current taps:
$ brew tap homebrew/versions
Yet I see stuff from Cask when searching for items that wouldn't be part of Homebrew itself (like Graphical programs, aText, Fantastical etc.):
$ brew search atext Caskroom/cask/atext
Though it doesn't install (as expected):
$ brew install atext Error: No available formula for atext Searching formulae... Searching taps... Caskroom/cask/atext
So the question is why does brew search Caskroom/cask and how do I get rid of it (I don't want Homebrew telling me it has aText, for example, when it can't install it)?
I am running Mac OS X Yosemite.