Skip to content

Instantly share code, notes, and snippets.

@mstahl
Created October 23, 2015 17:08
Show Gist options
  • Save mstahl/78bfbfd019097e80b798 to your computer and use it in GitHub Desktop.
Save mstahl/78bfbfd019097e80b798 to your computer and use it in GitHub Desktop.
Use this snippet to uninstall and reinstall all the things you've installed via homebrew
brew list > /tmp/brew_list
for package in $(cat /tmp/brew_list); do
brew uninstall --force $package
brew install $package
done
rm -f /tmp/brew_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment