From owner-freebsd-pkg@freebsd.org Wed Dec 6 13:28:54 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 CA3AEEA0970 for ; Wed, 6 Dec 2017 13:28:54 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-cmomta01.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97B457225B for ; Wed, 6 Dec 2017 13:28:54 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from raspberrypi.bildanet.com ([65.186.81.207]) by cmsmtp with ESMTP id MZhwedb89fiK5MZhzeOnYv; Wed, 06 Dec 2017 13:25:55 +0000 Received: from [192.168.1.143] (helo=desktop.example.com) by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1eMZkn-0006Fq-JQ for freebsd-pkg@freebsd.org; Wed, 06 Dec 2017 13:28:49 +0000 Subject: Re: How to upgrade php or python To: freebsd-pkg@freebsd.org References: From: Baho Utot Message-ID: <27228adb-3631-e0bf-fa20-d95a3e541683@columbus.rr.com> Date: Wed, 6 Dec 2017 08:28:49 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; 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-CMAE-Envelope: MS4wfLcZZRKwNO4+Ufgy4uYLibZYja3xmH3eYJ+mvck2RlpvzzdmygT4/zIOczfF5u5p8lN5vvAa2/nFJUqDzxKALTj5ylhwhaJ7wNvmumO9u1lWat8xjDht KiSLSs1tJ3lqMciqTdfJSSKMtTtv926LrDhwJv/N4NuTw1qXcBukwpo0YVqPjsZdawZ7Rr/ZSFY3rVS0rhFNS8FUzGC+zr4RQ+A= 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 13:28:54 -0000 On 12/06/17 05:12, Matthew Seaman wrote: > 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 > > So are you saying it's broke