Skip to content

Homebrew Installation

Source: https://brew.sh

Installation Steps

Run the following commands in your WSL terminal:

# Install pre-requisites
sudo apt-get install build-essential procps curl file git

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

Post-Installation

You will need to run the following commands to add Homebrew to your PATH:

echo >> /home/jeff/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> /home/jeff/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"

# Install Homebrew's dependencies if you have sudo access:
sudo apt-get install build-essential bubblewrap

Close and re-open your terminal OR source your .bashrc by running the following:

source ~/.bashrc