Created
April 11, 2014 21:05
-
-
Save fijimunkii/10501585 to your computer and use it in GitHub Desktop.
brew: unlink and re-link all formulas and kegs
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
ls -1 /usr/local/Library/LinkedKegs | while read line; do echo $line; brew unlink $line; brew link --force $line; done | |
brew list -1 | while read line; do brew unlink $line; brew link $line; done |
Tried: ls -1 /usr/local/Library/LinkedKegs
and got ls: /usr/local/Library/LinkedKegs: No such file or directory
.
Used: brew list | while read line; do echo $line; brew unlink $line; brew link --force $line; done
and that worked.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍