Last active
January 13, 2022 11:06
-
-
Save mimukit/5c4f44f61cfeb73018d1921e58d09514 to your computer and use it in GitHub Desktop.
Fix homebrew permissions on macOS
This file contains 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
sudo chown -R $(whoami) /usr/local/Cellar | |
sudo chown -R $(whoami) /usr/local/Homebrew | |
sudo chown -R $(whoami) /usr/local/var/homebrew | |
sudo chown -R $(whoami) ${HOME}/Library/Caches/Homebrew | |
sudo chown -R $(whoami) ${HOME}/Library/Logs/Homebrew | |
sudo chown -R $(whoami) /usr/local/etc | |
sudo chown -R $(whoami) /usr/local/opt | |
sudo chown -R $(whoami) /usr/local/bin | |
sudo chown -R $(whoami) /usr/local/var | |
sudo chown -R $(whoami) /usr/local/share/man/man1 | |
sudo chown -R $(whoami) /opt/homebrew-cask | |
sudo chown -R $(whoami) /usr/local/share | |
sudo chown -R $(whoami) /usr/local/lib | |
sudo chown -R $(whoami) /usr/local/include | |
sudo chown -R $(whoami) /usr/local/Frameworks | |
sudo chown -R $(whoami) /usr/local/Caskroom | |
sudo chown -R $(whoami) /usr/local/share/zsh | |
sudo chown -R $(whoami) /usr/local/share/zsh/site-functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment