From owner-freebsd-questions@FreeBSD.ORG Tue Jun 7 00:34:25 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 CDC7E16A41C for ; Tue, 7 Jun 2005 00:34:25 +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 4CE3843D58 for ; Tue, 7 Jun 2005 00:34:25 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dns1 ([64.58.171.82]) by lakecmmtao05.coxmail.com (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050607003425.VFDQ11183.lakecmmtao05.coxmail.com@dns1>; Mon, 6 Jun 2005 20:34:25 -0400 From: Vizion To: Kris Kennaway Date: Mon, 6 Jun 2005 17:30:01 -0700 User-Agent: KMail/1.8 References: <200506061414.16870.vizion@vizion.occoxmail.com> <20050606223206.GA84164@xor.obsecurity.org> In-Reply-To: <20050606223206.GA84164@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506061730.01713.vizion@vizion.occoxmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: pkgdb problem 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: Tue, 07 Jun 2005 00:34:25 -0000 On Monday 06 June 2005 15:32, the author Kris Kennaway contributed to the dialogue on- Re: pkgdb problem: >On Mon, Jun 06, 2005 at 02:14:16PM -0700, Vizion wrote: >> Hi >> >> I managed to get my pkgdb entirely screwed up - and there is now no >> database. >> >> I tried pkgdb -fu >> And was told there were 0 pkgs! >> >> How do I rebuild from scratch? > >If you accidentally delete your /var/db/pkg directory then the only >way to recover it is to restore from backup. Ooooooooooooooh dear are there no recovery scripts - I lost my var partition - and the back up was overwritten by a blank db!! I have a file listing of all the packages installed on the system - an output from pkg_info. Do you happen to know if there is any way I can at least get that into the pkgdb? David -- 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 May/June bound for Europe via Panama Canal.