From owner-freebsd-questions Mon Nov 23 22:27:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA13666 for freebsd-questions-outgoing; Mon, 23 Nov 1998 22:27:34 -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 WAA13661 for ; Mon, 23 Nov 1998 22:27:33 -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 WAA26328; Mon, 23 Nov 1998 22:27:20 -0800 (PST) Message-Id: <199811240627.WAA26328@stennis.ca.sandia.gov> X-Mailer: exmh version 2.0.2 2/24/98 To: Sue Blake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: what's this file? In-Reply-To: Your message of "Tue, 24 Nov 1998 17:12:54 +1100." <19981124171254.23210@welearn.com.au> 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_1125158080P"; micalg=pgp-md5; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 23 Nov 1998 22:27:20 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_1125158080P Content-Type: text/plain; charset=us-ascii If memory serves me right, Sue Blake wrote: > What's the easiest way to tell what package a file on my system came from? I'm sure there's probably a more elegant way to do this, but what about looking through the +CONTENTS files in /var/db/pkg/*? Something like this: hornet:bmah% cd /var/db/pkg hornet:pkg% grep tclsh */+CONTENTS tcl-7.6/+CONTENTS:bin/tclsh7.6 tcl-7.6/+CONTENTS:man/man1/tclsh.1.gz tcl-8.0.2/+CONTENTS:bin/tclsh8.0 tcl-8.0.2/+CONTENTS:man/man1/tclsh.1.gz (It looks to be kind of hard to find where a file *in a particular directory* came from, due to the syntax of the +CONTENTS files.) Bruce. --==_Exmh_1125158080P Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: 2.6.2 iQCVAwUBNlpRx6jOOi0j7CY9AQEDlAQAkxZl73ny/ydFhEOtGWO3wODjDaQSOEW1 EWrF7b3Dm2qCbeSmRkOVC0Q/CINPrsQVRyOvw4rzEJxJR4XHgomI99ahrzr1Fw98 Df9YQvSHKNq4QoY3dQPh+LHq3Y9LuErxPnn0sfpwRRX87lNUCFhy9VDxmiayLvcs FvqHvwnJSw0= =N7Xq -----END PGP MESSAGE----- --==_Exmh_1125158080P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message