From owner-freebsd-questions Wed Jun 19 10:19:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from c015.snv.cp.net (h011.c015.snv.cp.net [209.228.35.126]) by hub.freebsd.org (Postfix) with SMTP id 8BB1737B40D for ; Wed, 19 Jun 2002 10:19:08 -0700 (PDT) Received: (cpmta 6703 invoked from network); 19 Jun 2002 10:19:07 -0700 Received: from 209.228.35.117 (HELO mail.compgeek.com.criticalpath.net) by smtp.compgeek.com (209.228.35.126) with SMTP; 19 Jun 2002 10:19:07 -0700 X-Sent: 19 Jun 2002 17:19:07 GMT Received: from [65.69.2.116] by mail.compgeek.com with HTTP; Wed, 19 Jun 2002 10:19:06 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: freebsd-questions@freebsd.org From: "Jon Noack" Subject: Re: portversion weirdness X-Sent-From: noackjr@compgeek.com Date: Wed, 19 Jun 2002 10:19:06 -0700 (PDT) X-Mailer: Web Mail 5.0.10-14 Message-Id: <20020619101907.20669.h002.c015.wm@mail.compgeek.com.criticalpath.net> 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 > When I run portversion, I see that well over half of my installed ports > are listed with ">" (ie. installed version is more recent than version > in /usr/ports). I am sure cvsup is updating /usr/ports for me, and I > am sure "make index" is making /usr/ports/INDEX. pkgdb -F and pkgdb -u > seem to work fine. The portversion man page says to run 'portsdb -U' to update the INDEX. This takes an exceedingly long amount of time (for me), so I just use pkg_version instead. It checks the ports Makefile directly, and although it takes a little longer to run, is always accurate. From the pkg_version man page: "Each package's version number is checked against one of two sources to see if that package may require updating. If the package contains infor- mation about its origin in the FreeBSD ports tree, and a version number can be determined from the port's Makefile, then the version number from the Makefile will be used to determine whether the installed package is up-to-date or requires updating. If no origin for a package can be found, or if the port's Makefile cannot be located, pkg_version will search for the package in the ports collec- tion index file (typically /usr/ports/INDEX). Any matching version num- ber(s) there will be used to determine whether the installed package is up-to-date or requires updating." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message