Skip to content

Instantly share code, notes, and snippets.

@intel352
Last active August 29, 2015 14:03
Show Gist options
  • Save intel352/816a1fe43af39cddcfbe to your computer and use it in GitHub Desktop.
Save intel352/816a1fe43af39cddcfbe to your computer and use it in GitHub Desktop.
Brew (homebrew) reinstall packages - useful after upgrading OS versions or migrating
#!/bin/bash
brew list > ~/brewlist
brew remove --force $(brew list)
brew install $(cat ~/brewlist)
@intel352
Copy link
Author

intel352 commented Jul 8, 2014

Still need a solution for situation of dependency resolution, as the script fails when one package is attempted for installation in front of another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment