Installing Homebrew on Linux
October 12, 2020
Homebrew is a package manager that makes installing extra software very easy. Originally it was only for Mac, but a version for linux was created that has been merged back into the main repository.
To install homebrew on linux run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
After the installation, open a new terminal and check if the brew
command works. If not, then manually add the homebrew bin
folder to your path in your ~/.bash_profile
or ~/.zprofile
.
export PATH="$PATH:/home/linuxbrew/.linuxbrew/bin" #Homebrew
The path to the homebrew maintained binaries is generally /home/linuxbrew/.linuxbrew/bin
, but will be ~/.linuxbrew/bin
if not. This link has more details.
Now you can easily install software with brew. For example.
brew install nginxbrew install jmeter