Linuxbrew is a cool little program that will compile programs from scratch, ensuring you have the latest version. The install can be a little tricky, so I created a script for it.
Download the script
git clone https://github.com/NerdOfLinux/Scripts.git
And you’re already done with the hardest part!
and follow the rest of this tutorial.
Would you like to install linuxbrew? y)es or n)o?:
Obviously, you press ‘y’ and enter here.
Note: If it tells you run the setup, do that, and the script should continue.
==> Select the Linuxbrew installation directory - Enter your password to install to /home/linuxbrew/.linuxbrew (recommended) - Press Control-D to install to /home/admin/.linuxbrew - Press Control-C to cancel installation
This is up to you. If you want the programs you install to be accessible for all users, enter your password. Otherwise, if you don’t have sudo, press Control-D. I’ll enter my password.
==> This script will install: /home/linuxbrew/.linuxbrew/bin/brew /home/linuxbrew/.linuxbrew/share/doc/homebrew /home/linuxbrew/.linuxbrew/share/man/man1/brew.1 /home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew /home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew /home/admin/.cache/Homebrew/ /home/linuxbrew/.linuxbrew/Homebrew ==> The following new directories will be created: /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var Press RETURN to continue or any other key to abort
Press the ‘enter’ key, and let’s move on! Give it a bit to download and install everything it needs, and then continue.
Once you see
Finishing required steps... Linuxbrew is now installed. Fixing any issues...
that means that the install has finished, and my script is running brew doctor.
Your system is ready to brew. Would you like to test linuxbrew? y)es or n)o?:
If you have the time, type ‘y’ and enter. This will install a test program and see if everything went well.
Linuxbrew is functioning properly.
This means that install went through.
Would you like to disable linuxbrew analytics? y)es or n)o?:
I like disabling them, but if you don’t care, please leave it on.
The install is now complete, and you can now use Linuxbrew by running the