Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Created April 11, 2014 21:05
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save fijimunkii/10501585 to your computer and use it in GitHub Desktop.
Save fijimunkii/10501585 to your computer and use it in GitHub Desktop.
brew: unlink and re-link all formulas and kegs
@fndg87
Copy link

fndg87 commented Oct 14, 2021

👍

@PacoH
Copy link

PacoH commented Mar 16, 2024

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