31

I tried, while I am in /opt/homebrew-cask/Caskroom

$ for i in *; do brew cask uninstall $i; done
Error: appcleaner is not installed
Error: avidemux is not installed
Error: eclipse-ide is not installed
Error: flash is not installed
Error: silverlight is not installed
Error: thunderbird is not installed
Error: vlc is not installed

He uninstalled several apps, but those not. Why?

$ brew cask list
appcleaner    avidemux      eclipse-ide   flash     silverlight   thunderbird   vlc

$ pwd
/opt/homebrew-cask/Caskroom
$ ls
appcleaner  avidemux    eclipse-ide flash       silverlight thunderbird vlc
$ du -sh .
532M    .

Howto uninstall them properly? He didn't uninstall because updated without brew cask?

3
  • try to install one of these, just to see what it does Apr 21, 2014 at 20:14
  • Could you describe how you updated these applications "without brew cask"?
    – dan
    Apr 21, 2014 at 21:02
  • 2
    Here’s a relevant issue on the homebrew-cask project.
    – bdesham
    Apr 25, 2014 at 16:06

4 Answers 4

31
brew cask uninstall --force

This will remove all versions of a Cask.

28

And unless you want the preferences lying around you can also do:

brew cask zap [your cask]
0
3

In 2022, you can use:

brew uninstall --zap firefox

According to the documentation:

The zap stanza describes a more complete uninstallation of files associated with a Cask.

[...]

zap stanzas may remove:

Preference files and caches stored within the user’s ~/Library directory. Shared resources such as application updaters. Since shared resources may be removed, other applications may be affected by brew uninstall --zap. Understanding that is the responsibility of the end user.

0
  brew rmdeps

or

  brew rmtree

See: Uninstall / remove a Homebrew package including all its dependencies

It is possible that if the user updated the application manually and not using brew that it will have to be uninstalled manually.

You can check and see if there are any receipts in your Receipts folder:

 ls /private/var/db/receipts

and use the application's receipt .bom file and lsbom to Trash all files installed by the application as described here: Uninstall applications installed from packages Install

Homebrew seems to be taking the world by storm, according to Homebrew enthusiasts. I find Homebrew to be more or less incomplete, with barely any support, and has ambitions beyond its capability, perhaps because it is still in its infancy, or perhaps because it attempts to compete with a fully mature, complete, fully supported, end to end source and binary package management solution for OS X, i.e. MacPorts

1
  • the original question was asking about brew cask.. not brew. Mar 3, 2019 at 18:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .