Uninstalling Homebrew
Uninstall Homebrew
- To run Homebrew’s uninstall script, execute the command below.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
- To remove the Homebrew directory and all of its files, execute the command below.
sudo rm -rf /usr/local/Homebrew
- To remove the Caskroom directory and all of its files, execute the command below.
sudo rm -rf /usr/local/Caskroom
- To remove the Caskroom directory and all of its files, execute the command below.
sudo rm -rf /usr/local/bin/brew
- Ensure you restart your machine