Brew Installation: Difference between revisions
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
It protests if attempting to install as root. | It protests if attempting to install as root. | ||
After installation: | |||
<syntaxhighlight lang='bash'> | |||
echo 'eval "$(/home/nonroot/.linuxbrew/bin/brew shellenv)"' >> /home/nonroot/.bash_profile | |||
eval "$(/home/nonroot/.linuxbrew/bin/brew shellenv)" | |||
</syntaxhighlight> |
Latest revision as of 04:34, 3 May 2022
Internal
Overview
Installation on Mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Note that mac-setup will install brew
automatically if it does not find it.
Installation will deploy the following:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
It will also create the following directories:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Installation on Linux
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
It protests if attempting to install as root.
After installation:
echo 'eval "$(/home/nonroot/.linuxbrew/bin/brew shellenv)"' >> /home/nonroot/.bash_profile
eval "$(/home/nonroot/.linuxbrew/bin/brew shellenv)"