Homebrew package manager can be used in Linux and Windows Subsystem for Linux (WSL). Homebrew was formerly known as Linuxbrew when running under Linux or WSL.
It can be installed in your home directory, in which case it doesn’t use sudo.
It does not use any libraries provided by your host system, except glibc and gcc if they are new enough.
Homebrew can install its own current versions of glibc and gcc for older Linux distributions.
First of all, install the dependencies if you don’t have them, examples:
sudo apt-get install build-essential procps curl file git
sudo dnf groupinstall 'Development Tools'
sudo dnf install procps-ng curl file git
sudo dnf install libxcrypt-compat # Fedora 30
Next step is just to install:
sudo bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installed you run the command to install applications on your system, for example:
sudo brew install allegro
See the list of all available packages for GNU/Linux at this link.
For more information and additional settings see the official website: