TOP(About this memo)) > 一覧(Mac) > Homebrew
brew --cellar
によって確認すると配置場所は /usr/local/Cellarbrew tap https://github.com/user/homebrew-repo
のように実行することでbrew installが可能なリポジトリを追加できるといった利用方法?$cat ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)" # $PATHに opt/homebrew/bin を追加する処理もここに含まれている?
$echo $PATH | sed -e 's/:/\n/g' | grep homebrew
/opt/homebrew/bin
/opt/homebrew/sbin
$which tree
/opt/homebrew/bin/tree
$ls -l $(brew --prefix)/bin
lrwxr-xr-x 1 xxxx admin 29 11 21 13:22 tree -> ../Cellar/tree/2.1.1/bin/tree
...
brew upgrade
で全てのパッケージ、Homebrew本体をアップデートする。$ brew pin <formula>
$ brew unpin <formula>
brew doctor
brew config
brew list(ls)
brew list --versions
brew install パッケージ名
brew uninstall パッケージ名
brew update
brew upgrade
brew search パッケージ名
brew cleanup
brew deps
brew deps --tree cocoapods
brew install --cask パッケージ名
brew cask install パッケージ名
arch -x86_64 コマンド
で明示的にアーキテクチャを指定する。brew install cocoapods
...
Error: cocoapods dependencies not built for the arm64 CPU architecture:
ca-certificates was built for x86_64
mpdecimal was built for x86_64