From owner-freebsd-ports@freebsd.org Sat Nov 28 18:21:22 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85054A37796 for ; Sat, 28 Nov 2015 18:21:22 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4612414AD for ; Sat, 28 Nov 2015 18:21:21 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id A246E28460; Sat, 28 Nov 2015 19:21:11 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D9A6A28431; Sat, 28 Nov 2015 19:21:10 +0100 (CET) Message-ID: <5659F096.7030200@quip.cz> Date: Sat, 28 Nov 2015 19:21:10 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: Carmel NY , FreeBSD Ports Subject: Re: update PHP References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2015 18:21:22 -0000 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