Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active March 20, 2018 05:44
Show Gist options
  • Select an option

  • Save sinewalker/33e34b08c33c1c83bc959457068f82d5 to your computer and use it in GitHub Desktop.

Select an option

Save sinewalker/33e34b08c33c1c83bc959457068f82d5 to your computer and use it in GitHub Desktop.
Uninstall all of Homebrew and casks

I recently had to uninstall/reinstall my brew casks and recipies because I had royally screwed something up. I have a script to re-install all the things I want so it was no drama except for the downloads and re-install, and some oversights when I uninstalled brew. So here is what I think I should have done:

1. uninstall any applications installed with brew cask

$ for APP in $(brew cask list); do
  brew cask uninstall $APP
done

2. uninstall Homebrew:

(see the install/uninstall help on GitHub)

$ http https://raw.githubusercontent.com/Homebrew/install/master/uninstall  > uninstall #or curl -fsSL
$ chmod +x uninstall
$ ./uninstall --help
$ ./uninstall --force

3. re-install Homebrew

Either run the installer as described, or use my dotfiles which takes care of everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment