0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

/optへhomebrewをインストールする

Posted at

brew公式

アンインストール

 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

/opt/homebrewへのインストール

cd /opt
sudo mkdir homebrew
sudo chown ${USER}:staff homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

~/.zshrcへ以下を追記

export PATH=$PATH:/opt/homebrew/bin
export HOMEBREW_CACHE=/opt/homebrew/cache

本文中のコマンドライン簡易解説

sudo chown ${USER}:staff homebrew

chownはchange ownerの略です
${USER}で、$USERがそこに入ります
chown 所有者:グループ名 という書き方で、フォルダの所有者を所有者に、グループをstaffにします。homebrewを/usr/local/binに入れるなら必要ない話です
staffは、グループのパーミッションで、adminの反対です。

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?