mac-dev-playbook/tests/uninstall-homebrew.sh
Florian Weber 3e46828d30
Run tests on Mac OS 14 and 15 (#209)
* Run tests on Mac OS 14 and 15

* Update uninstall-homebrew.sh

* Don't die on bad terminal defaults request.

---------

Co-authored-by: Jeff Geerling <geerlingguy@mac.com>
2024-11-11 23:22:01 -06:00

14 lines
404 B
Bash
Executable file

#!/bin/bash
#
# Uninstalls Homebrew using the official uninstall script.
# Download and run the uninstall script.
curl -sLO https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh
chmod +x ./uninstall.sh
sudo ./uninstall.sh --force
# Clean up Homebrew directories.
sudo rm -rf /usr/local/Homebrew
sudo rm -rf /usr/local/Caskroom
sudo rm -rf /usr/local/bin/brew
sudo rm -rf /opt/homebrew