Skip to content

Instantly share code, notes, and snippets.

@AlexKMDev
Last active August 29, 2015 13:57
Show Gist options
  • Save AlexKMDev/9384821 to your computer and use it in GitHub Desktop.
Save AlexKMDev/9384821 to your computer and use it in GitHub Desktop.
reinstall homebrew packages
#!/bin/sh
BACKUP_PATH=/tmp/packages_list
brew ls > $BACKUP_PATH
brew rm $(cat $BACKUP_PATH)
brew install $(cat $BACKUP_PATH)
rm $BACKUP_PATH
brew cleanup -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment