Skip to main content

Homebrew

Homebrew instalation

  1. Update system and install git

    sudo apt update
    sudo apt-get install build-essential
    sudo apt install git -y
  2. Run Homebrew installation script and add Homebrew to your PATH

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
  3. Check Homebrew is working fine

    brew doctor
  4. Uninstall Homebrew it from Linux

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

Source: How to install Brew on Ubuntu 20.04 LTS Linux