Date: Sat, 28 Nov 2015 19:21:10 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> To: Carmel NY <carmel_ny@outlook.com>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: update PHP Message-ID: <5659F096.7030200@quip.cz> In-Reply-To: <BLU436-SMTP9F607C82FA606074F3D4980030@phx.gbl> References: <BLU436-SMTP9F607C82FA606074F3D4980030@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5659F096.7030200>