From owner-freebsd-current Wed Jun 28 3: 5:21 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 2C8AB37B704 for ; Wed, 28 Jun 2000 03:05:15 -0700 (PDT) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.9.3/8.9.3) with UUCP id MAA38561; Wed, 28 Jun 2000 12:05:05 +0200 (CEST) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.9.3/8.9.3) with ESMTP id MAA08207; Wed, 28 Jun 2000 12:04:53 +0200 (CEST) (envelope-from leifn@neland.dk) Date: Wed, 28 Jun 2000 12:04:53 +0200 (CEST) From: Leif Neland To: Thomas Schuerger Cc: freebsd-current@FreeBSD.ORG Subject: Re: Check for ports updates In-Reply-To: <200006061927.VAA12002@wjpserver.cs.uni-sb.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 6 Jun 2000, Thomas Schuerger wrote: > Hi! > > Is there already a tool that checks the installed ports for available > updates in /usr/ports? > > I've written such a tool, which seems to work fine already. Anyone > interested? > Now that such a tool (yours?) is in /etc/periodic/weekly, how does one update a package? If I update foo-1.1 to foo-1.2 by just doing a make install, I now have both foo-1.1 and foo-1.2 listed in /var/db/pkg And if I remove foo-1.1 first, it will complain that bar-2.3 requires foo. If I remove foo-1.1 after installing foo-1.2, /usr/bin/foo will be removed, I fear. Or will the MD5 values in +CONTENT check, that only files belonging to foo-1.1 be removed? That can't be, because some files might be the same in both packages. The steps needed for upgrading a package (from ports) would be: make install append foo-1.1/+REQUIRED_BY to foo-1.2/+REQUIRED_BY traverse /var/db/pkg/* and remove foo-1.1/replace with foo-1.2 "subtract" foo-1.2/+CONTENT from foo-1.1/+CONTENT, only removing files needed only in foo-1.1 remove /var/db/pkg/foo-1.1 Does this look sane? Have I overlooked the pkg_add --update command, or is it now "send patches-time"? Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message