Skip to content

Instantly share code, notes, and snippets.

@notFloran
Last active April 26, 2018 09:21
Show Gist options
  • Save notFloran/00d882e573fcc5de2661081aa59c6ffd to your computer and use it in GitHub Desktop.
Save notFloran/00d882e573fcc5de2661081aa59c6ffd to your computer and use it in GitHub Desktop.
Homebrew - remove PHP and its config
# remove all php and extensions, use "brew list | grep php" to get all packages
brew uninstall --force --ignore-dependencies php71-xdebug php71-amqp php71 ....
# remove all configs
rm -rf /usr/local/etc/php/7.1
rm -rf /usr/local/opt/[email protected]
rm -rf /usr/local/share/pear
rm -rf /usr/local/lib/php/
rm -rf /usr/local/Cellar/php@71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment