Skip to content
kd
3 Aug 2022
Back to blog

Installing `homebrew` in an alternative location

1 min read (14 words)

See https://gist.github.com/pudquick/29bc95b6c49703992981864e48f8e341

  1. Install homebrew in ~/.local/homebrew.

    Terminal window
    cd ~/.local/
    mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
  2. Add the following to PATH:

    Terminal window
    alias brew=~/.local/homebrew/bin/brew

Citation

@online{krishnamurthy2022installinghomebrewinanalternativelocation,
  author = {Dheepak Krishnamurthy},
  title = {Installing `homebrew` in an alternative location},
  year = {2022},
  date = {2022-08-03},
  url = {https://kdheepak.com/blog/installing-homebrew-in-an-alternative-location/},
  langid = {en},
}

For attribution, please cite this work as:

Dheepak Krishnamurthy, "Installing `homebrew` in an alternative location", August 3, 2022 https://kdheepak.com/blog/installing-homebrew-in-an-alternative-location/


Understanding variables and mutability in Julia
Programmers' preferences for package names