From owner-freebsd-questions Sun Sep 12 11: 4:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from s8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by hub.freebsd.org (Postfix) with ESMTP id 8C804154F9 for ; Sun, 12 Sep 1999 11:02:48 -0700 (PDT) (envelope-from jcwells@u.washington.edu) Received: from localhost (jcw@localhost) by s8-37-26.student.washington.edu (8.9.3/8.9.3) with ESMTP id WAA09947; Sun, 12 Sep 1999 22:30:43 GMT (envelope-from jcwells@u.washington.edu) X-Authentication-Warning: s8-37-26.student.washington.edu: jcw owned process doing -bs Date: Sun, 12 Sep 1999 22:30:42 +0000 (GMT) From: "Jason C. Wells" X-Sender: jcw@s8-37-26.student.washington.edu Reply-To: "Jason C. Wells" To: Harry Putnam Cc: freebsd-questions@freebsd.org Subject: Re: Pack management In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12 Sep 1999, Harry Putnam wrote: >Having seen several mentions on this list of FreeBSD package >managment being better than rpm. I'm looking for the diagnostic type >commands that will reveal the state of the system or a particular >package. > >Or a way to trace the files installed when a package is installed, >extract individual original files from packages. Or find which >package holds a particular file. > >Hopefully pkg_info, pkg_add, pkg_delete isn't all of it. To know where a file was install pkg_info -f package_name. To extract a known file from a package use tar -xf. The pkg system doesn't index every file on your system. Only files installed as a pkg/port. The organization is by package and not by file. That is to say there is not a filename cross reference capability that is inimical to the pkg/port system. There is a package name cross reference and dependency capability. You can still find out which package holds a file though. E.g. $ grep -lR kdestroy /var/db/pkg $ /var/db/pkg/krb5-1.0.6/+CONTENTS Kerberos V contains the file named kdestroy as listed in the packing list which is named +CONTENTS. The answer to everything you want to know is in /var/db/pkg. pkg_info et al can provide you with everything you want to know at the package level. To find out waht you want to know at a file level just use your basic unix tools. Also, packages(binary) and ports(source) are managed identically. If you roll your own, the system still works. Thank You, | http://students.washington.edu/jcwells Jason Wells | "Those who would trade freedom for security deserve neither | freedom nor security." - Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message