Skip to content

Instantly share code, notes, and snippets.

@fardjad
Last active September 18, 2024 12:32
Show Gist options
  • Save fardjad/2e38d4dbdd42b28ec8bbe0b725e67f37 to your computer and use it in GitHub Desktop.
Save fardjad/2e38d4dbdd42b28ec8bbe0b725e67f37 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
    
@andrewmkano
Copy link

Thank you!

@spartanbear
Copy link

Grazie!

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