Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Created January 2, 2022 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save coolaj86/d4775a5c3154bb72d13804f520d6ee7e to your computer and use it in GitHub Desktop.
Save coolaj86/d4775a5c3154bb72d13804f520d6ee7e to your computer and use it in GitHub Desktop.

Get that nasty brew out of your system directories!

sudo rm -rf /usr/local/Homebrew/
sudo rm -rf /usr/local/Caskroom/
sudo rm -rf /usr/local/Cellar/

Now remove all broken symlinks from /usr/local/opt/ which, on a typical brew-infected system, will be all of them:

sudo rm -rf /usr/local/opt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment