Brew Installation: Difference between revisions
Jump to navigation
Jump to search
(7 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: | |||
<syntaxhighlight lang='bash'> | |||
/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 | |||
</syntaxhighlight> | |||
It will also create the following directories: | |||
<syntaxhighlight lang='bash'> | |||
/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 | |||
</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> |
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)"