Skip to the content.
Homebrew
-
Installation
- Execute the commands below to install
brew
CLI.
- installs brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- gives brew access
sudo chown -R $(whoami) /usr/local/var/homebrew
- updates brew
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch —unshallow
brew cleanup
-
Doctoring
- Because of its high availability in CI/CD systems, brew is easily abused and must be doctored manually upon installation.
-
- Execute the commands below to begin doctoring your installation.
- check the brew doctor report
- change the ownership of these directories to your user
sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions
- ensure your user has write permission.
chmod u+w /usr/local/share/zsh /usr/local/share/zsh/site-functions
- update system path
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc