LoginSignup
0
1

More than 3 years have passed since last update.

Homebrewでインストールしたパッケージの依存関係をツリー表示

Posted at

インストールしたパッケージの依存関係をツリー表示する方法です。
必要のないパッケージを削除したいときに便利だと思います。
Formula名の後に[build]という注釈のあるパッケージが実際にはインストールされていないことがありますが、これはビルド時のみに必要なパッケージで、Bottle(ビルド済みバイナリパッケージ)を利用した場合にはインストールされません。

コマンド
$ brew deps --1 --include-build --include-optional --include-test --include-requirements --tree --annotate --installed
表示例
libyaml
├── autoconf  [build]
├── automake  [build]
└── libtool  [build]

openssl

pkg-config

readline

ruby
├── pkg-config  [build]
├── libyaml 
├── openssl 
└── readline 
0
1
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
1