by Rafert · 11y ago · 0 comments
It's worth mentioning that after the upgrade you might run into permissions problems: https://github.com/Homebrew/homebrew/blob/master/share/doc/h...
You might want to run `brew update` before updating, so `brew doctor` can help you troubleshoot issues afterwards.
I knew about /usr/local problem from Yosemite, though on El Capitan (same time as Yosemite, with /usr/local moved to ~/local) it was smooth as butter (I did not move /usr/local). All upgrade took about 30 minutes, and after it was done, I did sudo chown -R $(whoami):admin /usr/local and I was good to go.
rsync -rtvpl /usr/local ~/usr.local.backup
A lot of other apps do put stuff there though (when I wish they'd keep it in their own bundle).
Even worse, a lot of other apps drop stuff into /usr/bin.
You can't even do it with root:
[mason@IT-PC-MACPRO ~]$ sudo bash
Password:
[root@IT-PC-MACPRO ~]# touch /usr/bin/nope
touch: /usr/bin/nope: Operation not permitted
[root@IT-PC-MACPRO ~]# cat 'nope nope' >> /usr/bin/nope
bash: /usr/bin/nope: Operation not permitted