Homebrew x86_64

Table of contents
  1. Installing Homebrew for both arm and x86
    1. Install for x86
    2. Set alias
    3. Opt out of analytics (Optional)

Installing Homebrew for both arm and x86

Install for x86

After having installed Homebrew natively, install for x86:

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

x86 Homebrew will be located in /usr/local/Homebrew while native Homebrew is in /opt/homebrew.

Set alias

In your .zshrc,

# .zshrc
alias xbrew='arch -x86_64 /usr/local/Homebrew/bin/brew'

Opt out of analytics (Optional)

xbrew analytics off