From owner-freebsd-pkg@freebsd.org Wed Dec 6 10:12:46 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 D9B85E9B63A for ; Wed, 6 Dec 2017 10:12:46 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A17CF6BEFA for ; Wed, 6 Dec 2017 10:12:46 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.202.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 66CDD1B79 for ; Wed, 6 Dec 2017 10:12:43 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Subject: Re: How to upgrade php or python To: freebsd-pkg@freebsd.org References: From: Matthew Seaman Message-ID: Date: Wed, 6 Dec 2017 10:12:43 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB 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: Wed, 06 Dec 2017 10:12:46 -0000 On 06/12/2017 05:35, 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? Assuming you have built your own pkg repository with poudriere and set the default php version to whatever you want, then a simple 'pkg upgrade' will do the trick. This pretty much works for changing the default version of php as well as just patch-level updates. The trick with pkg(8) is not to try and upgrade things piecemeal -- it is much more complicated than it at first appears, and the likelyhood is you will end up with inconsistencies and even software failures. It's pkg(8)'s entire reason for existence to sort out all of this sort of dependency relationships, and at the moment it does that best when it's allowed to consider all of the packages you have installed. Cheers, Matthew