From owner-freebsd-questions Sun Apr 2 9:38: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nimitz.ca.sandia.gov (nimitz.ca.sandia.gov [146.246.243.56]) by hub.freebsd.org (Postfix) with ESMTP id 84BB037BE1E for ; Sun, 2 Apr 2000 09:37:58 -0700 (PDT) (envelope-from bmah@nimitz.ca.sandia.gov) Received: (from bmah@localhost) by nimitz.ca.sandia.gov (8.10.0/8.10.0) id e32GbQT72261; Sun, 2 Apr 2000 09:37:26 -0700 (PDT) (envelope-from bmah) Message-Id: <200004021637.e32GbQT72261@nimitz.ca.sandia.gov> X-Mailer: exmh version 2.1.1-cvs 10/15/1999 To: "David J. Kanter" Cc: FreeBSD questions Subject: Re: Package/port INDEX question In-Reply-To: <20000401120008.A23617@localhost.localdomain> References: <20000401120008.A23617@localhost.localdomain> Comments: In-reply-to "David J. Kanter" message dated "Sat, 01 Apr 2000 12:00:08 -0600." From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1176548480P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sun, 02 Apr 2000 09:37:26 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_-1176548480P Content-Type: text/plain; charset=us-ascii If memory serves me right, "David J. Kanter" wrote: > Is the package index referred to when using pkg_version an amalgam of > installed packages, installed ports, and not-installed ports? Unless you specified otherwise by command-line option, it refers to /usr/ports/INDEX. > I ask this because of the "multiple versions" that shows up when I run > pkg_version after upgrading from 3.4-R to 3.4-S. A bunch now show up, and > I'm assuming it's because multiple versions of a port exist, rather than my > installation of multiple versions of a package or port. The purpose of pkg_version is to compare the version numbers of installed ports with what's in the INDEX file. If there are multiple versions of a port installed *or* if there exist multiple versions in the INDEX file, pkg_version can't make a meaningful comparison of the version numbers because it doesn't know which quantities to compare. The "multiple versions" output is pkg_version's (my) way of saying there isn't any automated way of figuring out which comparison to make and that you have to look at the output yourself and see. > For instance, bash has multiple versions, but I only installed 2.03. > However, an earlier version shows up in the ports tree, so is this why > pkg_version shows multiple version existing? Yep. Bruce. --==_Exmh_-1176548480P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: G8dFdtfShoDPGzPxDihlo68BlMytAQTf iQA/AwUBOOd3RtjKMXFboFLDEQLFLwCgjcf/H33s7PUy1yXan70PyEXPvxMAn3sd mKJV29avI9nfrTcs3upWcE5G =Ysic -----END PGP SIGNATURE----- --==_Exmh_-1176548480P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message