Skip to content

Instantly share code, notes, and snippets.

@Miista
Last active September 19, 2018 20:05
Show Gist options
  • Select an option

  • Save Miista/9793389 to your computer and use it in GitHub Desktop.

Select an option

Save Miista/9793389 to your computer and use it in GitHub Desktop.
Remove a Homebrew package along with all of its dependencies
brew rm FORMULA
brew rm $(join <(brew leaves) <(brew deps FORMULA))
Run the last line a until `echo $(join <(brew leaves) <(brew deps FORMULA))` returns nothing OR until the last line informs you that `This command requires a keg argument`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment