1
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 1 year has passed since last update.

Homebrewのformulaを整理についての備忘録

Last updated at Posted at 2022-01-06

依存していないfomulaの一覧

$ brew list | xargs -I{} sh -c 'brew uses --installed {} | wc -l | xargs printf "%20s is used by %2d formulae.\n" {}' | grep '0 formula'

依存関係も一緒に削除

$ brew rmtree <不要なfomula>

rmtreetap しないと使えないので以下を実行してからとなります。

$ brew tap beeftornado/rmtree

最後にクリーンアップ

$ brew cleanup

依存関係を確認

どこから依存されているかは brew uses --installed を確認する。

$ brew uses --installed ca-certificates
curl                      fastlane                  libssh2                   openldap                  openssl@1.1               rtmpdump                  ruby
1
0
2

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
1
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?