From owner-freebsd-questions Tue Dec 31 7:40:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69B9937B401 for ; Tue, 31 Dec 2002 07:40:39 -0800 (PST) Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AE6743E4A for ; Tue, 31 Dec 2002 07:40:38 -0800 (PST) (envelope-from scott.mitchell@mail.com) Received: from fishballoon.dyndns.org ([80.4.125.54]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021231154037.ILIZ900.mta05-svc.ntlworld.com@fishballoon.dyndns.org> for ; Tue, 31 Dec 2002 15:40:37 +0000 Received: from tuatara.goatsucker.org (tuatara [192.168.1.6]) by fishballoon.dyndns.org (8.12.3/8.12.3) with ESMTP id gBVFg2bO000617 for ; Tue, 31 Dec 2002 15:42:02 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.12.6/8.12.6/Submit) id gBVFfwd8025243 for freebsd-questions@freebsd.org; Tue, 31 Dec 2002 15:41:58 GMT (envelope-from scott) Date: Tue, 31 Dec 2002 15:41:58 +0000 From: Scott Mitchell To: freebsd-questions@freebsd.org Subject: Portupgrade vs. multiple versions of packages Message-ID: <20021231154158.GA22986@fishballoon.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I've just spent a fun day upgrading ~180 ports that were about a year out of date, which will teach me not to be so lazy in future :-( Anyway, portupgrade coped with most of this mess admirably, except for (unsurprisingly) the KDE2 --> KDE3 upgrade. Portupgrade simply refused to upgrade kdelibs-2.2.2 to the latest 3.0.5_1, I suspect because the install required some file that portupgrade was deinstalling along with the rest of 2.2.2, before it installed 3.0.5. So in the end I just installed 3.0.5 on top of the old version, presumably leaving various rubbish from the old installation on my system. This allowed the rest of the upgrades to proceed happily. Pkgdb moticed later that I had two kdelibs installed, and helpfully offered to deregister one for me. I took it up on this, and ended up with a new file +CONTENTS.kdelibs-2.2.2 under /var/db/pkg/kdelibs-3.0.5_1, alongside the usual +CONTENTS for the new version. First question: Will any of the pkg* tools make use of this file so that I can, for example, deinstall the new version plus the leftover bits of the old version, next time I upgrade? Second question: If not, is there a nice automated way to find (and remove) stray files left behind by old packages that weren't properly removed? I could put together a script to find anything in /usr/{local,X11R6} that doesn't belong to any installed package, but maybe this wheel has already been invented? Thanks in advance & happy new year, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message