Uninstall / remove a Homebrew package including all its dependencies

后端 未结 10 1324
萌比男神i
萌比男神i 2020-12-04 04:25

I have a Homebrew formula that I wish to uninstall/remove along with all its dependencies, skipping packages whom other packages depend upon (a.k.a. Cascadi

10条回答
  •  感情败类
    2020-12-04 05:07

    The goal here is to remove the given package and its dependencies without breaking another package's dependencies. I use this command:

    brew deps [FORMULA] | xargs brew remove --ignore-dependencies && brew missing | xargs brew install
    

    Note: Edited to reflect @alphadogg's helpful comment.

提交回复
热议问题