Skip to content

Instantly share code, notes, and snippets.

@jamonholmgren
Created August 27, 2025 22:38
Show Gist options
  • Save jamonholmgren/98446be9656b1daf58402bc7ee43bc2e to your computer and use it in GitHub Desktop.
Save jamonholmgren/98446be9656b1daf58402bc7ee43bc2e to your computer and use it in GitHub Desktop.
mkdir -p "$HOME/homebrew"
git clone https://github.com/Homebrew/brew "$HOME/homebrew/.linuxbrew/Homebrew"
mkdir -p "$HOME/homebrew/bin"
ln -s "$HOME/homebrew/.linuxbrew/Homebrew/bin/brew" "$HOME/homebrew/bin/brew"
# Homebrew (per-user)
eval "$($HOME/homebrew/bin/brew shellenv)"
# Put casks in your user ~/Applications so we never need sudo
export HOMEBREW_CASK_OPTS="--appdir=$HOME/Applications"
mkdir -p "$HOME/Applications"
# Reload shell
exec $SHELL -l
# Verify
brew doctor
# Test by installing wget
brew install wget
wget "https://example.com"
# clean up
rm ./index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment