Shell/Bash: install homebrew on ubuntu Example


Shell/Bash Example: This is the "install homebrew on ubuntu" Example. compiled from many sources on the internet by

install homebrew on ubuntu

git clone ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)

install linuxbrew

$ sh -c "$(curl -fsSL"

brew install ubuntu

/bin/bash -c "$(curl -fsSL"

ubuntu install brew

test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile

* Summary: This "install homebrew on ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!