How to uninstall Homebrew Cask

HomebrewHomebrew Cask

Homebrew Problem Overview


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.

Homebrew Solutions


Solution 1 - Homebrew

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 2 - Homebrew

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 3 - Homebrew

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)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionehsanullahjanView Question on Stackoverflow
Solution 1 - Homebrewnekperu15739View Answer on Stackoverflow
Solution 2 - HomebrewAndy LeeView Answer on Stackoverflow
Solution 3 - HomebrewBo LouieView Answer on Stackoverflow