From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 17:20:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C659816A4CE for ; Fri, 19 Mar 2004 17:20:36 -0800 (PST) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B068643D2F for ; Fri, 19 Mar 2004 17:20:36 -0800 (PST) (envelope-from flowers@users.sourceforge.net) Received: from pd5mr5so.prod.shaw.ca (pd5mr5so-qfe3.prod.shaw.ca [10.0.141.181]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HUU001I0P2CS8@l-daemon> for freebsd-questions@freebsd.org; Fri, 19 Mar 2004 18:20:36 -0700 (MST) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd5mr5so.prod.shaw.ca (Sun ONE Messaging Server 6.0 Patch 1 (built Jan 13 2004)) with ESMTP id <0HUU00CVTP3DNO70@pd5mr5so.prod.shaw.ca> for freebsd-questions@freebsd.org; Fri, 19 Mar 2004 18:21:13 -0700 (MST) Received: from sirius (h68-144-47-89.cg.shawcable.net [68.144.47.89]) 2003))freebsd-questions@freebsd.org; Fri, 19 Mar 2004 18:20:36 -0700 (MST) Date: Fri, 19 Mar 2004 18:20:33 -0700 From: Dan MacMillan In-reply-to: <20040320010543.GA19241@xor.obsecurity.org> To: Kris Kennaway Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal cc: freebsd-questions@freebsd.org Subject: RE: Impact of running pkgdb -fu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 01:20:36 -0000 Kris Kennaway Sent: March 19, 2004 18:06 > On Fri, Mar 19, 2004 at 05:56:08PM -0700, Dan MacMillan wrote: > > Kris Kennaway Sent: March 19, 2004 17:46 > > > On Fri, Mar 19, 2004 at 05:34:38PM -0700, Dan MacMillan wrote: > > > > > > > > I have a question about the effect of running "pkgdb -fu", > > > > besides making me laugh because of its whimsically profane > > > > command-line options. > > > > > > > > Suppose I have been running "pkgdb -F" as suggested by > > > > portupgrade, and I accidentally delete a stale dependency > > > > that should have been handled in another way. Will > > > > rebuilding the package database with "pkgdb -fu" restore > > > > this dependency to its pristine, correct state? > > > > > > No, the dependency was removed from the installed package. You need > > > to explicitly restore it, e.g. by reinstalling it. > > > > Thanks for your reply ... but now I'm a little confused. The > > dependencies are stored in the packages themselves? Would that be in > > the tarball in the /usr/ports/distfiles directory? Where can I go to > > learn more about this, specifically the anatomy of a binary package > > and the structure of the package database? > > Packages register themselves in /var/db/pkg when installed. Read the > pkg_create and related manpages for more details. Excellent. Thank you for your kind attention. -Dan