Created
April 1, 2019 12:16
-
-
Save shov/f5a18d1790423ecb71a6a94bcdfa50ad to your computer and use it in GitHub Desktop.
Reborn brew packages after migration
This file contains hidden or 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
#!/bin/bash | |
brew list -1 > brew.txt \ # list out all installed packages | |
&& brew list -1 | xargs brew rm --force \ # remove all installed packages | |
&& brew install $(cat brew.txt | tr '\n' ' ') \ # install all previously installed packages | |
&& rm brew.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment