From owner-freebsd-pkg@freebsd.org Thu Dec 7 00:14:00 2017 Return-Path: Delivered-To: freebsd-pkg@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 97074E9139D for ; Thu, 7 Dec 2017 00:14:00 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [IPv6:2607:f740:c::4ae]) (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 855C169A65 for ; Thu, 7 Dec 2017 00:14:00 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from chombo.houseloki.net (c-73-240-250-185.hsd1.or.comcast.net [73.240.250.185]) by echo.brtsvcs.net (Postfix) with ESMTPS id 26C4738D1B; Wed, 6 Dec 2017 16:14:00 -0800 (PST) Received: from [IPv6:fe80::dd2a:ba9e:2d4a:7c5f] (unknown [IPv6:fe80::dd2a:ba9e:2d4a:7c5f]) by chombo.houseloki.net (Postfix) with ESMTPSA id AD50FFE3; Wed, 6 Dec 2017 16:13:59 -0800 (PST) Subject: Re: How to upgrade php or python To: Aristedes Maniatis , freebsd-pkg@freebsd.org References: From: Mel Pilgrim Message-ID: Date: Wed, 6 Dec 2017 16:13:58 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 00:14:00 -0000 On 12/5/2017 9:35 PM, Aristedes Maniatis wrote: > Let’s say I’m in a very common situation where a new PHP update is released. I have the core php71 package plus another dozen like php71-mysqli. How do I upgrade these without being forced to do it one at a time or upgrading every package on the system? > > With https://github.com/freebsd/pkg/issues/1055 being unresolved for a few years now, I’m assuming other people have some sort of workaround for this very common need. If you're using the public repos and you're catching up to an increase in the default version, you can get pkg to migrate them by changing the origin. See chapter 4.4.9 of the Handbook[1], but in short you change the origin of the ports, run a normal pkg upgrade, then reinstall any depending ports (postfixadmin, phpMyAdmin, etc.). 1: https://www.freebsd.org/doc/handbook/pkgng-intro.html