From owner-freebsd-ports@FreeBSD.ORG Fri Feb 8 10:22:00 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AEB516A418 for ; Fri, 8 Feb 2008 10:22:00 +0000 (UTC) (envelope-from parv@pair.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 4F43A13C459 for ; Fri, 8 Feb 2008 10:22:00 +0000 (UTC) (envelope-from parv@pair.com) Received: from localhost.hawaii.res.rr.com ([66.91.120.58]) by hrndva-omta04.mail.rr.com with ESMTP id <20080208102159.DHJN25788.hrndva-omta04.mail.rr.com@localhost.hawaii.res.rr.com>; Fri, 8 Feb 2008 10:21:59 +0000 Received: from holstein.holy.cow (localhost [127.0.0.1]) by localhost.hawaii.res.rr.com (Postfix) with ESMTP id A86EE32C6; Fri, 8 Feb 2008 00:23:34 -1000 (HST) Received: (from parv@localhost) by holstein.holy.cow (8.13.8/8.13.8/Submit) id m18ANX8J011076; Fri, 8 Feb 2008 00:23:33 -1000 (HST) (envelope-from parv@pair.com) X-Authentication-Warning: holstein.holy.cow: parv set sender to parv@pair.com using -f Date: Fri, 8 Feb 2008 00:23:33 -1000 From: Parv To: Hans Lambermont Message-ID: <20080208102333.GA10300@holstein.holy.cow> Mail-Followup-To: Hans Lambermont , freebsd-ports@freebsd.org References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> <20080206095133.GA94134@eos.sc1.parodius.com> <20080206110215.T2130@wojtek.tensor.gdynia.pl> <1563a4fd0802060239t16e539adn784001d75f9d1d02@mail.gmail.com> <20080206114113.GA95591@eos.sc1.parodius.com> <20080207143247.GB53709@leia.lambermont.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080207143247.GB53709@leia.lambermont.dyndns.org> Cc: freebsd-ports@freebsd.org Subject: Partially OT - Re: Upgrading the Installed package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2008 10:22:00 -0000 in message <20080207143247.GB53709@leia.lambermont.dyndns.org>, wrote Hans Lambermont thusly... > > Jeremy Chadwick wrote: > ... > > The way you upgrade a port/package on a FreeBSD machine is that > > you pkg_delete (deinstall) the old one before pkg_add'ing > > (installing) the new one. All package management systems on > > every platform I've used (Solaris, Linux, and FreeBSD) behave > > this way. > > The dreadful RPM system does not work this way. It leaves the > files that get no update untouched, adds new stuff next to them > and then removes the obsoleted files. rpm -Uvv shows the upgrade > behaviour : > > * Run %pre of new package (2) > * Install new files > * Run %post of new package (2) > * Run %preun of old package (1) > * Delete any old files not overwritten by newer ones > * Run %postun of old package (1) So, if anything makes the upgrade to halt after the 3d step, only mess is left to clean up (if one is aware & willing)? - Parv --