From owner-freebsd-stable@FreeBSD.ORG Fri Sep 6 14:53:57 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 02686359 for ; Fri, 6 Sep 2013 14:53:57 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews05.kpnxchange.com (cpsmtpb-ews05.kpnxchange.com [213.75.39.8]) by mx1.freebsd.org (Postfix) with ESMTP id 6B0CC2387 for ; Fri, 6 Sep 2013 14:53:55 +0000 (UTC) Received: from cpsps-ews27.kpnxchange.com ([10.94.84.193]) by cpsmtpb-ews05.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Fri, 6 Sep 2013 16:53:46 +0200 Received: from CPSMTPM-TLF104.kpnxchange.com ([195.121.3.7]) by cpsps-ews27.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Fri, 6 Sep 2013 16:53:46 +0200 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF104.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Fri, 6 Sep 2013 16:53:46 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id C112E16125; Fri, 6 Sep 2013 16:53:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org, "Jim Ballantine" Subject: Re: Fwd: Package database References: Date: Fri, 06 Sep 2013 16:53:45 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-OriginalArrivalTime: 06 Sep 2013 14:53:46.0194 (UTC) FILETIME=[E351D320:01CEAB10] X-RcptDomain: freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 14:53:57 -0000 Than I'll top-post too. Anyway. Try this: $ ls -al /var/backups/ total 16417 drwxr-x--- 2 root wheel 10 Sep 6 03:03 ./ drwxr-xr-x 25 root wheel 25 Sep 5 14:42 ../ -rw-r--r-- 1 root wheel 1688 Dec 6 2012 aliases.bak -rw-r--r-- 1 root wheel 1665 Aug 4 2011 aliases.bak2 -rw-r--r-- 1 root wheel 761 Feb 6 2013 group.bak -rw-r--r-- 1 root wheel 761 Jan 2 2013 group.bak2 -rw------- 1 root wheel 2994 Feb 6 2013 master.passwd.bak -rw------- 1 root wheel 2994 Jan 2 2013 master.passwd.bak2 -rw-r--r-- 1 root wheel 8362370 Sep 6 03:03 pkgdb.bak.tbz -rw-r--r-- 1 root wheel 8362370 Sep 5 03:03 pkgdb.bak.tbz.2 On Thu, 05 Sep 2013 14:52:06 +0200, Jim Ballantine wrote: > Sorry these didn't get to the list. > gmail responses only to sender and not cc, > it also seems to top post. > > ---------- Forwarded message ---------- > From: Jim Ballantine > Date: Wed, Sep 4, 2013 at 3:09 PM > Subject: Re: Package database > To: Freddie Cash > > > I looked in /var/db and there is not dir/file named backup. There is a > dir > named pkg.bak but it is empty. > > > On Wed, Sep 4, 2013 at 1:46 PM, Jim Ballantine > wrote: > >> I'm trying to upgrade with portmaster and getting: >> >> portmaster -Gadv >> ===>>> Sorting ports by category >> ===>>> Gathering distinfo list for installed ports >> >> ===>>> No ORIGIN in /var/db/pkg/ORBit2-2.14.19/+CONTENTS >> >> ===>>> No ORIGIN in /var/db/pkg/R-3.0.1/+CONTENTS >> >> >> >> On Wed, Sep 4, 2013 at 1:43 PM, Freddie Cash wrote: >> >>> On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine >>> wrote: >>> >>>> My /var/db/pkg has become corrupt, and I can't find an archive of it >>>> to >>>> install in it's place. Does one exist and if so where? If not any >>>> ideas on >>>> how to rebuild the db? >>>> >>> >>> Are you using PKGng or the old pkg_* tools? >>> >>> Meaning, is your data stored as individual files under >>> /var/db/pkg/PORTNAME/*, or as a single sqlite database under >>> /var/db/pkg? >>> >>> If using PKGng, there's a backup copy under /var/db/backup* >>> >>> If using the older pkg_* tools, you're screwed. :) >>> >>> >>> -- >>> Freddie Cash >>> fjwcash@gmail.com >>> >> >> > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"