How to return to default homebrew installation of php #1850
-
This repository is great, and really useful for accessing previous version of PHP. I needed to use PHP 7 for a deprecated program, and now I want to return to the current version of PHP. Is there a way to revert the homebrew links to their original destination(like how it would normally be installed with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 brew remove [email protected] |
Beta Was this translation helpful? Give feedback.
You can install the latest php version and switch to it.
If you get an error like php is already linked, unlink it and link it again.
Restart your terminal, it should now have the latest php version.
If you no longer need the old PHP version like
[email protected]
, you can remove it