How can I cleanly remove Homebrew. I might have a faulty older installation, and I'd like to have a fresh start.
MacOS – How to cleanly remove Homebrew
homebrewmacos
Related Question
- MacOS – How to cleanly remove MacPorts
- MacOS – How to completely remove homebrew
- MacOS – Homebrew: can’t remove ‘keg-only’ OpenSSL application
- MacOS – I can’t uninstall Homebrew. How to find and remove all of the Homebrew files and re-install it again
- MacOS – How to programmatically find the latest version number of Homebrew
- MacOS – Two different locations for Homebrew
- MacOS – How to upgrade the mac to OpenJDK 11 using Homebrew
- Is it possible to uninstall Xcode, keep the CLI tools and have a working Homebrew installation running on macOS Mojave
Best Answer
This
rm -rf
will not ask if you are sure when you delete, so be sure thecd
command works to get you out of /tmp (thecd /tmp
gets you to a safe place in case you copy/paste everything in one go so you don't delete files from your current directory)Try this in your Terminal:
More info about this topic can be found in the Homebrew FAQ.