From owner-freebsd-questions@FreeBSD.ORG Mon Aug 29 02:03:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0C18F16A41F for ; Mon, 29 Aug 2005 02:03:53 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from lakecmmtao05.coxmail.com (lakecmmtao05.coxmail.com [68.99.120.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58CA443D48 for ; Mon, 29 Aug 2005 02:03:52 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dns1 ([64.58.171.82]) by lakecmmtao05.coxmail.com (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050829020352.LTVD2425.lakecmmtao05.coxmail.com@dns1>; Sun, 28 Aug 2005 22:03:52 -0400 From: Vizion To: freebsd-questions@freebsd.org Date: Sun, 28 Aug 2005 18:59:48 -0700 User-Agent: KMail/1.8 References: <200508271417.03388.vizion@vizion.occoxmail.com> <44zmr1muhc.fsf@be-well.ilk.org> In-Reply-To: <44zmr1muhc.fsf@be-well.ilk.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508281859.48516.vizion@vizion.occoxmail.com> Cc: Lowell Gilbert Subject: Re: pkgdb usage guide X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 02:03:53 -0000 On Sunday 28 August 2005 17:56, the author Lowell Gilbert contributed to the dialogue on- Re: pkgdb usage guide: >Vizion writes: >> It would be most appreciated if someone who is familiar with the use >> of pkgdb could either point to a user guide that tells one how & in >> what circumstances to use the various interactive options offered by >> this utility or maybe help to draft an faq on it. > >How about the following? > > The pkgdb command is a tool to create or update the system > package database which is used by the portupgrade(1) tool suite. > It maintains a hash that maps an installed file to a package > name, a hash that maps a package to an origin, and a list of > installed packages. > > pkg_which looks in the package database to tell which package > each specified file came from. If the database is outdated but > you do not have permission to update it, it delegates tasks to > pkg_info(1). > > Actually, pkgdb and pkg_which are the same command, and are > equivalent. > > The pkgdb command also works as an interactive tool for fixing > the pack- age registry database when -F is specified. It helps > you resolve stale dependencies, unlink cyclic dependencies, > complete stale or missing origins and remove duplicates. You > should run this command periodically so portupgrade(1) and other > pkg_* tools can work effectively and reliably. Pretty good How about the various interactive options - do you have time to add to it guifance on how to answer the question if you use the -F option and the utility finds stale dependencies? That set of questions can be pretty daunting roe newbies and the way that the manual is written can be challenging for old hands (like myself) with failing memories!!! Thanks again When this is done I will put it on a website somewhere.. there is a serious gap in all the FreeBSD documentation for this one. david > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- 40 yrs navigating and computing in blue waters. English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus. Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after completing engineroom refit.