Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChristopherA/3448ed55657766eeaab809dc1416849f to your computer and use it in GitHub Desktop.
Save ChristopherA/3448ed55657766eeaab809dc1416849f to your computer and use it in GitHub Desktop.
Uninstall brew package and dependencies

Uninstall brew package and dependencies

Remove package's dependencies (does not remove package):

brew deps [FORMULA] | xargs brew remove --ignore-dependencies

Remove package:

brew remove [FORMULA]

Reinstall missing libraries:

brew missing | cut -d: -f2 | sort | uniq | xargs brew install
@soplwang
Copy link

brew autoremove

It works!

@pmsaue0
Copy link

pmsaue0 commented Jan 15, 2022

brew uninstall [formula] ; brew autoremove

FTW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment