Setting Linuxbrew
Sep 4, 2018 · 1 min read
In this blog I shall write the steps to install Linuxbrew
Linuxbrew is a fork of Homebrew, the macOS package manager, for Linux. It can be installed in your home directory and does not require root access. The same package manager can be used on both your Linux server and your Mac laptop.
The installation script installs Linuxbrew to /home/linuxbrew/.linuxbrew
Run the following command on the terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"sudo apt-get install build essential
nano .bashrc
~/.profile
Then to add Linuxbrew to your path on Ubuntu/Kubuntu run the following commands:
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profileNext install a package:
brew update
brew install helloYep that's it!!