brew code example
Example 1: brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Example 2: brew
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/maskedcarrot/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
Example 3: brew
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
Example 4: brew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Example 5: brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Example 6: brew
export HOMEBREW_BREW_GIT_REMOTE="..." # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Example 7: brew
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/maskedcarrot/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
Example 8: brew
$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1
$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
Example 9: brew
$ brew install wget
Example 10: brew
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/maskedcarrot/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)