Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created January 6, 2022 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmarreck/79f1bfdcffab9006b64602a7d378fd67 to your computer and use it in GitHub Desktop.
Save pmarreck/79f1bfdcffab9006b64602a7d378fd67 to your computer and use it in GitHub Desktop.
uninstall all brews from homebrew
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