From owner-freebsd-questions Sat Oct 31 21:11:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA10301 for freebsd-questions-outgoing; Sat, 31 Oct 1998 21:11:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from stennis.ca.sandia.gov (stennis.ca.sandia.gov [146.246.243.44]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA10296 for ; Sat, 31 Oct 1998 21:11:55 -0800 (PST) (envelope-from bmah@stennis.ca.sandia.gov) Received: (from bmah@localhost) by stennis.ca.sandia.gov (8.9.1/8.9.1) id VAA26063; Sat, 31 Oct 1998 21:11:27 -0800 (PST) Message-Id: <199811010511.VAA26063@stennis.ca.sandia.gov> X-Mailer: exmh version 2.0.2 2/24/98 To: Mike Jenkins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: verifying packages In-Reply-To: Your message of "Fri, 30 Oct 1998 13:51:12 CST." <199810301951.NAA14820@carp.gbr.epa.gov> 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_-925562890P"; micalg=pgp-md5; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sat, 31 Oct 1998 21:11:27 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_-925562890P Content-Type: text/plain; charset=us-ascii If memory serves me right, Mike Jenkins wrote: > I was taking a walk on the Linux side and saw some nifty features ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "Take a walk on the wild side"? :-) > in the package manipulation utility (rpm in this case). One thing > is the ability to verify a package (rpm -V package). Another is > the ability to use the simple package name without version numbers > ("rpm -q -i package" instead of "rpm -q -i package-1.2.3b"). > > Any chance the FreeBSD package utilities could inherit these? I know next to nothing about rpm, but I've done a little bit of work on some FreeBSD ports. A couple of thoughts: 1. To the extent that a program could verify the md5 checksums of installed files, one can "verify" a package. In fact, pkg_delete(1) does exactly this before blowing files away, suggesting there may be a quick cut 'n' paste solution to this problem. 2. It's possible to have multiple installed versions of packages co-existing. Most times, this is a Bad Thing (TM), but for some packages, such as Tcl/Tk, it's not unusual to have multiple versions on the same system. Presumably one needs to disambiguate the two in this case. I ran into this problem when trying to figure out which of two packages is "newer", using only the names of the two. > How about a single pkg command with switches for info, add, etc.? Hmmm. "pkg -info" vs. "pkg_info" gains you...what? Cheers, Bruce. --==_Exmh_-925562890P Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: 2.6.2 iQCVAwUBNjvtfqjOOi0j7CY9AQHVTwQAh/qlsvDqsFYZQOC5MyuZfrR1sl6MbdM6 hzJzUm6jt9laPiJ+Cm7klQ2A7poXN7u6yWwRR6CxaIqjJIV+ZuszdxInLzCWBQat how5KwGsRWd2O4aCZv24M98sxQmM9a5T1aWa4UkXJDQy3OHviMbWmEAc4yZIa1eF wtJpJ3wqJ0E= =m48X -----END PGP MESSAGE----- --==_Exmh_-925562890P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message