From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 14:56:27 2003 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 D8FF637B401 for ; Wed, 11 Jun 2003 14:56:27 -0700 (PDT) Received: from tchoubou.scientiae.net (scientiae.net [62.4.18.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0441743FB1 for ; Wed, 11 Jun 2003 14:56:26 -0700 (PDT) (envelope-from viny@scientiae.net) Received: from tchoubou.scientiae.net (localhost.scientiae.net [127.0.0.1]) h5BM2267067036; Thu, 12 Jun 2003 00:02:02 +0200 (CEST) (envelope-from viny@scientiae.net) Received: (from viny@localhost) by tchoubou.scientiae.net (8.12.9/8.12.9/Submit) id h5BM22m4067035; Thu, 12 Jun 2003 00:02:02 +0200 (CEST) Date: Thu, 12 Jun 2003 00:02:02 +0200 From: Viny To: Robert Huff , FREEBSD-questions Message-ID: <20030611220202.GA49242@tchoubou.scientiae.net> References: <20030611195110.GA48453@tchoubou.scientiae.net> <16103.41594.620810.565966@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16103.41594.620810.565966@jerusalem.litteratus.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 X-Spam-Status: No, hits=-4.5 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: Pkgdb corrupted : doesn't recognized installed ports 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: Wed, 11 Jun 2003 21:56:28 -0000 On Wed, Jun 11, 2003 at 05:43:22PM -0400 or thereabouts, Robert Huff may have written : > make a copy of the db > delete the db > rebuild the db from scratch > > The last may take a while, depending on how fast your machine > is, but it may save you a lot of grief. > Then run pkg_version (or equivalent) and update as desired. Thanks for the answer. What exactly do you call the db ? /var/db/pkg/pkgdb.db ? or the whole directory /var/db/pkg ? Upon examination it seems that some files disappeared with the crash. Actually, some +CONTENTS files to be more precise. Which explains I can't do anything with these ports. If there was a way to build /var/db/pkg from scratch I'd be very happy =) Else, I plan to retrieve the cvs ports files matching the versions of the programs installed on my computer and reinstall them. Viny