From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 07:10:01 2003 Return-Path: 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 712BF16A4B3 for ; Sun, 19 Oct 2003 07:10:01 -0700 (PDT) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFEB843FAF for ; Sun, 19 Oct 2003 07:10:00 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id E40163B04; Sun, 19 Oct 2003 10:09:59 -0400 (EDT) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <20031017183307.401450af.adam.mclaurin@gmx.net> <44smlqqwil.fsf@be-well.ilk.org> <20031018192934.2c3ed3fa.adam.mclaurin@gmx.net> From: Lowell Gilbert Date: 19 Oct 2003 10:09:59 -0400 In-Reply-To: <20031018192934.2c3ed3fa.adam.mclaurin@gmx.net> Message-ID: <44k77148ug.fsf@be-well.ilk.org> Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Why build INDEX ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 14:10:01 -0000 Adam McLaurin writes: > On 18 Oct 2003 13:35:30 -0400 > Lowell Gilbert wrote: > > > 'pkg_version -v' and 'make search' are very useful, and depend on an > > up-to-date INDEX file. > > 'pkg_version -v' does NOT depend on an up-to-date INDEX. > > > > This is completely incorrect. Building INDEX.db is for portversion. > > INDEX has to be updated for pkg_version to see the updated versions of > > the ports skeletons (in other words, if you don't rebuild it, > > 'pkg_version -v won't know that your ports have been updated). > > Again, 'pkg_version -v' works just fine without an updated INDEX. I've done it > hundreds of times; it always works. Sure it works, for some definition of "works" that doesn't involve using up-to-date information. It will tell you if your ports are outdated, but it will compare them to the versions that were present when the INDEX file was built, not the ones that are currently installed. So if you cvsup your ports and want to know if you just downloaded any new versions of installed ports, you have to have an updated INDEX file. That doesn't mean you have to rebuild your own INDEX file, because you can (and will, unless you specifically refuse it) download it along with the rest of the ports collection. Of course, those are only built every few weeks, so they generally won't be completely up-to-date either.