Difference between revisions of "Homebrew installation"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
== User installation == | == User installation == | ||
https://stackoverflow.com/a/55021458 | https://stackoverflow.com/a/55021458 | ||
− | cd $HOME | + | cd $HOME && [[git clone]] https://github.com/Homebrew/brew.git |
− | |||
./brew/bin/brew tap homebrew/core | ./brew/bin/brew tap homebrew/core | ||
[[export]] PATH=$HOME/brew/bin:$PATH >> ~/[[.zshrc]] | [[export]] PATH=$HOME/brew/bin:$PATH >> ~/[[.zshrc]] |
Revision as of 09:27, 19 April 2022
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ==> Checking for `sudo` access (which may request your password)... Sorry, user sf may not run sudo on Ms-MacBook-Pro. Need sudo access on macOS (e.g. the user YOUR_USERNAME needs to be an Administrator)!
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Password: ==> Checking for `sudo` access (which may request your password)... Don't run this as root!
User installation
https://stackoverflow.com/a/55021458
cd $HOME && git clone https://github.com/Homebrew/brew.git ./brew/bin/brew tap homebrew/core export PATH=$HOME/brew/bin:$PATH >> ~/.zshrc export PATH=$HOME/brew/bin:$PATH >> ~/.bashrc
Verify:
exec $SHELL which brew # see that brew is found in your path
Related
See also
Advertising: