Install Homebrew - UzanR/UzCodingNewLife GitHub Wiki

Install homebrew

curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh

less install.sh

/bin/bash install.sh

echo $0

ZSH: nano ~/.zshrc Bash shell: nano ~/.bash_profile

Add homebrew to directory

Intel:

Add Homebrew's executable directory to the front of the PATH

export PATH=/usr/local/bin:$PATH

M1:

Add Homebrew's executable directory to the front of the PATH

echo 'export PATH="/opt/homebrew/bin:$PATH"' >> /Users/uzanr/.bash_profile;

make change

zsh: source ~/.zshrc bash shell: source ~/.bash_profile

check

brew doctor brew update