Skip to content

How to return to default homebrew installation of php #1850

Closed Answered by shivammathur
samhsabin asked this question in Q&A / Help
Discussion options

You must be logged in to vote

You can install the latest php version and switch to it.

brew install php
brew link --force --overwrite php

If you get an error like php is already linked, unlink it and link it again.

brew unlink php
brew link --force --overwrite php

Restart your terminal, it should now have the latest php version.

If you no longer need the old PHP version like php@7.0, you can remove it

brew remove php@7.0

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samhsabin
Comment options

Answer selected by shivammathur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants