From owner-freebsd-questions@FreeBSD.ORG Fri Apr 18 10:34:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2103106564A for ; Fri, 18 Apr 2008 10:34:32 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from heka.cenkes.org (heka.cenkes.org [208.79.80.110]) by mx1.freebsd.org (Postfix) with ESMTP id 79FBE8FC12 for ; Fri, 18 Apr 2008 10:34:32 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from amilo.cenkes.org (ppp85-140-150-223.pppoe.mtu-net.ru [85.140.150.223]) (Authenticated sender: sat) by heka.cenkes.org (Postfix) with ESMTPSA id E1EDD242F837; Fri, 18 Apr 2008 14:34:30 +0400 (MSD) Date: Fri, 18 Apr 2008 14:34:29 +0400 From: Andrew Pantyukhin To: Aijaz Baig Message-ID: <20080418103422.GE1543@amilo.cenkes.org> References: <101a1afc0804110732u8b2a16k24caa639258e7f42@mail.gmail.com> <200804112204.04948.fbsd.questions@rachie.is-a-geek.net> <101a1afc0804130241p2cae4475qc072ac2b5a4f5aa2@mail.gmail.com> <200804132301.38567.fbsd.questions@rachie.is-a-geek.net> <101a1afc0804141347y4e980688vcabf57dd3df70c8b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <101a1afc0804141347y4e980688vcabf57dd3df70c8b@mail.gmail.com> X-OS: FreeBSD 8.0-CURRENT amd64 User-Agent: Mutt/1.5.17 (2007-11-01) Cc: leslie@eskk.nu, Mel , freebsd-questions@freebsd.org Subject: Re: Pkg_info corrupt for some packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: infofarmer@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2008 10:34:32 -0000 On Mon, Apr 14, 2008 at 10:47:01PM +0200, Aijaz Baig wrote: > Hello, > > I tried running the script suggested by mel and after that I was able to see > that some of those packages got registered as installed. > > However some of the packages were not being found and as an example I saw > the following: > > Restoring doodle-0.6.6_1 > Failed: cannot find doodle-0.6.6_1 in /usr/ports/INDEX-7* > > *Then as suggested by andrew I tried to see just how many packages have been > messed and to my shock the figure for the first command was 336 and for the > second command was 326. > > Well...how do I 'extract the port origins' from pkgdb.db?I am sorry if I > sound naive but im a bit new to freebsd. Ten lost ports is easy enough to do by hand - look what packages miss their contents and find them in the ports tree. Then just cd to each /usr/ports/whatever/whenever and run make install -DFORCE_PKG_REGISTER That should do it.