LoginSignup
4
5

More than 5 years have passed since last update.

HomebrewをHomeディレクトリにインストールする

Last updated at Posted at 2017-08-22

端的にいうと、Homeディレクトリで homebrew を展開してPATHを設定するだけである。

cd ~/
mkdir homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

.bash_profile に以下を追記する。

cat << 'EOF' >> ~/.bash_profile
export PATH=$HOME/homebrew/bin:$PATH
export HOMEBREW_CACHE=$HOME/homebrew/caches
EOF

環境変数 HOMEBREW_CACHE を定義しておかないとデフォルトの /Library/Caches が使われてしまう。

シェルを再起動する。

exec -l $SHELL

以上。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5