Brew Installation: Difference between revisions
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
==Installation on Mac== | |||
<syntaxhighlight lang='bash'> | |||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |||
</syntaxhighlight> | |||
Note that [[mac-setup]] will install brew. | Note that [[mac-setup]] will install <code>brew</code> automatically if it does not find it. | ||
Installation will deploy the following: | Installation will deploy the following: | ||
Line 36: | Line 39: | ||
/usr/local/share/zsh/site-functions | /usr/local/share/zsh/site-functions | ||
/usr/local/var | /usr/local/var | ||
</syntaxhighlight> | |||
==Installation on Linux== | |||
<syntaxhighlight lang='bash'> | |||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |||
</syntaxhighlight> | |||
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> | </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)"