root@macbook-pro ~ % mkdir '.local'
root@macbook-pro ~ % cd .local/
root@macbook-pro .local %
root@macbook-pro .local % mkdir bin
root@macbook-pro .local % mkdir lib
root@macbook-pro .local % mkdir opt
root@macbook-pro .local % mkdir share
root@macbook-pro .local % cd opt/
root@macbook-pro opt %
root@macbook-pro opt % mkdir homebrew
Run the following line:
curl -L 'https://github.com/Homebrew/brew/tarball/master' | tar xz --strip 1 -C homebrew/
% alias brew="${HOME}/.local/opt/homebrew/bin/brew"
Verify the previous line ran as expected:
% which brew
brew: aliased to /Users/root/.local/opt/homebrew/bin/brew
% export PATH="${HOME}/.local/bin:${PATH}"
Verify the previous line ran as expected:
% echo "PATH: ${PATH}"
PATH: /Users/root/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
@drazisil