From owner-freebsd-questions Sun Apr 15 14:25:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 0556F37B440 for ; Sun, 15 Apr 2001 14:25:11 -0700 (PDT) (envelope-from michaelnottebrock@gmx.net) Received: (qmail 10476 invoked by uid 0); 15 Apr 2001 21:25:09 -0000 Received: from pd4b9eef7.dip.t-dialin.net (HELO lofizwei) (212.185.238.247) by mail.gmx.net (mp008-rz3) with SMTP; 15 Apr 2001 21:25:09 -0000 Message-ID: <011501c0c5f2$a72ee600$0508a8c0@lofi.dyndns.org> From: "Michael Nottebrock" To: "Ken Bolingbroke" , "Hervey Wilson" Cc: "FreeBSD Questions" References: Subject: Re: Ports deinstall / reinstall Date: Sun, 15 Apr 2001 23:25:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Ken Bolingbroke" To: "Hervey Wilson" Cc: "FreeBSD Questions" Sent: Sunday, April 15, 2001 10:28 PM Subject: Re: Ports deinstall / reinstall > > > On Sun, 15 Apr 2001, Hervey Wilson wrote: > > > I sync the ports collection regularly and endeavour to keep my system up to > > date. When packages are reported as out of date, I try to reinstall them, > > with this sequence: > > > > /usr/ports/XXXX: make deinstall > > /usr/ports/XXXX: make reinstall > > > > However, "make deinstall" invariably seems to report that the package is not > > found since it's looking for the new version, not the one I have installed. > > I therefore find myself reinstalling the new version and thinking about > > deleting the old versions entries from /var/db/pkgs. > > > > This doesn't feel quite right, can someone help me refine my process ? > > I've had the same problem, and unfortunately, the port upgrade process > doesn't seem to be well documented. The Port Handbook section on > upgrading is blank, for example. > > >From various tidbits on the lists, and my own trial and error process, > I've developed the following procedure: > > 1) port foo-1.2 is out of date, the current versions is foo-1.3 > > 2) go to the foo port directory and run "make" > > 3) if make completes successfully, run "pkg_delete foo-1.2" > > 3a) if that fails because other ports depend on foo-1.2, then do > "cp /var/db/pkg/foo-1.2/+REQUIRED_BY /tmp" and then do > "pkg_delete -f foo-1.2" > > 4) run "make install" > > 4a) if you did step 3a), then do > "mv /tmp/+REQUIRED_BY /var/db/pkg/foo-1.3/" > > 5) run "grep foo-1.2 /var/db/pkg/*/+CONTENT", and if you get something > like /var/db/pkg/bar-2.7/+CONTENTS:@pkgdep foo-1.2", then edit that > file to reflect your upgrade to foo-1.3. > with "unsubscribe freebsd-questions" in the body of the message The procedure described at http://www.freebsddiary.org/pkg_version.html might be interesting for you, since it allows you to keep your installed ports&packages up-to-date completely automagically (not failsafe, though). Greetings, Michael Nottebrock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message