Steps required to install Homebrew on MX Linux (and other Debian-based distros)
-
Update apt cache and optionally do a full upgrade
apt update apt full-upgrade # optional, reboot if needed -
Install build tools
apt install build-essential procps curl file git -
Install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Set brew environment variables
[ -d /home/linuxbrew/.linuxbrew ] && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) # You most likely want to add the above line to your shell startup file as well. -
Make
brew doctorhappybrew doctor # Ignore the warning about config scripts -
Install gcc (as recommended by the installer script)
brew install gcc
Thank you!