Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmorozov82/7da67e4ebbbbb3a845fb6f7ecd68176e to your computer and use it in GitHub Desktop.
Save dmorozov82/7da67e4ebbbbb3a845fb6f7ecd68176e to your computer and use it in GitHub Desktop.
[How to Install Homebrew on Debian-based Distros] Steps required to install homebrew on MX Linux (and other Debian-based distros) #linux #debian #mxlinux #homebrew

How to Install Homebrew on Debian-based Distros

Steps required to install Homebrew on MX Linux (and other Debian-based distros)

Steps

  1. Update apt cache and optionally do a full upgrade

     apt update
     apt full-upgrade # optional, reboot if needed
    
  2. Install build tools

     apt install build-essential procps curl file git
    
  3. Install homebrew:

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  4. 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.
    
  5. Make brew doctor happy

     brew doctor
     
     # Ignore the warning about config scripts
    
  6. Install gcc (as recommended by the installer script)

     brew install gcc
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment