update PHP
Miroslav Lachman
000.fbsd at quip.cz
Sat Nov 28 18:21:22 UTC 2015
Carmel NY wrote on 11/27/2015 12:39:
> I am running a FreeBSD 10.2 - p7 machine. I have PHP 5.4 installed . I want
> to update it to version 5.6. Would this method work:
>
> portupgrade -o lang/php56 lang/php5
>
> Then:
>
> portupgrade -o lang/php56-extensions lang/php5-extensions
>
> Would I l then need to rebuild everything that depends on PHP or could I just
> add the "-r" flag to portupgrade?
[...]
I tried major upgrade of PHP many times and found out that most straight
forward way is to deinstall all old extensions and then install newer.
You can get list of all origins of ports depending on main php port by
this command
pkg query %o `pkg info -r php5 | tail -n +2`
You can try this command to get list with modified version number from
php5 to php56
pkg query %o `pkg info -r php55 | tail -n +2` | sed 's~php5~php56~'
You can save it to file
pkg query %o `pkg info -r php55 | tail -n +2` | sed 's~php5~php56~' >
my_php_ports
Then deinstall all dependent ports and upgrade PHP from php5 to php56,
then you can use previously saved list of ports to install their newer
versions by portupgrade, portmaster or any other tool.
(I am not using portupgrade, maybe you can get the list of origins by
portupgrade instead of pkg)
Miroslav Lachman
More information about the freebsd-ports
mailing list