Created
January 6, 2022 17:19
-
-
Save pmarreck/79f1bfdcffab9006b64602a7d378fd67 to your computer and use it in GitHub Desktop.
uninstall all brews from homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [[ `brew list | wc -l` -ne 0 ]]; do | |
#Iterate over each installed package | |
for EACH in `brew list`; do | |
#Uninstall each package | |
brew uninstall --ignore-dependencies $EACH --force | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment