Brew Update Error in MacOS El Capitan

Brew or Homebrew kept erroring out on MacOS with El Capitan – turns out it had to do with security feature called SIP = Security integrity protection which prevents changes to the /System, /Usr and /sbin directory.

You can disable it by running – “csrutil disable” command.

For homebrew to work

$ sudo chown -R $(whoami):admin /usr/local  

If it still doesn’t work, use following steps

1. open terminal  
2. $ cd /usr/local  
3. $ git reset --hard  
4. $ git clean -df
5. $ brew update

Credit 

Leave a Reply

Your email address will not be published.

Post Navigation