When homebrew-cask won’t let you uninstall

Software

I use homebrew-cask to install my Mac application bundles. Once installed, it means you can either script this or run from the shell:

$ brew update
$ brew cask install seamonkey

Unlike software from other *nix package managers, Mac applications usually update themselves once installed. Sparkle is the nicest way to do this, but Mozilla, LibreOffice and others bundle their own updaters. Regardless, it means the version homebrew-cask installed may not match the version you're currently running, which leads to this:

$ brew list | grep seamonkey
==> seamonkey
$ brew cask remove seamonkey
==> Error: seamonkey is not installed

I encountered this late at night the first time, and thought I was going crazy. The jury is still out on that, but the force command will allow its removal:

$ brew cask remove --force seamonkey
==> Removing App symlink: '/Users/ruben/Applications/SeaMonkey.app'

There’s a closed bug report on GitHub about this.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.