Reinstalling homebrew symbolic links after a restore

Instead of reinstating the symlinks, the better way to do it would be to use brew link.

For a given binary which isn't in /usr/local/bin, e.g. yasm, run brew unlink yasm && brew link yasm.

You can run this for all of your packages using xargs, like so:

brew list | xargs -I % sh -c 'brew unlink %; brew link %'


You can brew unlink and brew link for each app.

If its painful for you, you can back up from your timemachine "after boot".

If you import data from your timemachine at starting your machine, brew broken, but after you restart your machine once, it will work.

Tags:

Macos

Homebrew