Back to Setup

⚠️ Only execute these commands if you saw this warning ☝

_partials/macos_homebrew.md

latest1.8 KB
Original Source

Homebrew

Homebrew is a package manager: it's a software used to install other software from the command line. Let's install it!

Open a terminal and run:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

This will ask for your confirmation (hit Enter) and your macOS user account password (the one you use to log in when you reboot your Macbook).

:warning: When you type your password, nothing will show up on the screen, that's normal. This is a security feature to mask not only your password as a whole but also its length. Just type your password and when you're done, press Enter.

:warning: If you see this warning :point_down:, run the two commands in the Next steps section to add Homebrew to your PATH:

bash
# ⚠️ Only execute these commands if you saw this warning ☝
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

If you already have Homebrew, it will tell you so, that's fine, go on.

Then install some useful software:

bash
brew update

If you get a /usr/local must be writable error, just run this:

bash
sudo chown -R $USER:admin /usr/local
bash
brew update

Proceed running the following in the terminal (you can copy / paste all the lines at once).

bash
brew upgrade git || brew install git
bash
brew upgrade gh || brew install gh
bash
brew upgrade wget || brew install wget
bash
brew upgrade imagemagick || brew install imagemagick
bash
brew upgrade jq || brew install jq
bash
brew upgrade openssl || brew install openssl