Created
February 20, 2017 23:33
-
-
Save takuan-osho/249a8481de4124442adb82cd408c05cb to your computer and use it in GitHub Desktop.
homebrewでcleanup候補をリストあっぷするスクリプト
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 cleanup 2>&1 | grep Skipping | cut -d ' ' -f3 | cut -d ':' -f1 > skiplist.txt |
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/sh | |
| while read line; do | |
| brew uninstall $line | |
| done < ./skiplist.txt | |
| brew cleanup | |
| while read line; do | |
| brew install $line | |
| done < ./skiplist.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment