Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2013 12:23:04 -0400
From:      Jim Ballantine <j.ballantine@gmail.com>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Fwd: Package database
Message-ID:  <CADcmFMV8i%2Baic4uFfb_qbs%2BGjFPign766G5FfQuVd0nQss3ECQ@mail.gmail.com>
In-Reply-To: <op.w2zvnv0r8527sy@212-182-167-131.ip.telfort.nl>
References:  <CADcmFMXNFke=pH8264%2ByNXA3_vhMy8m_7sPrHb1N6eRfVd=Vdw@mail.gmail.com> <CAOjFWZ7LeNwH=6-QODVqBRbL-T52b%2BH_kbpdE5UctLH2WNXOZw@mail.gmail.com> <CADcmFMXimdnfoOAi35HwWLW0_wF30OtWrEjddYnGp3qAgHzNCQ@mail.gmail.com> <CADcmFMVeVAAfRv3F_BwjMd7UrssfFqMPrtPrhYas%2B-GsveU5tQ@mail.gmail.com> <CADcmFMXEj5hmFd7J8zNkbvo3fS-_zG_VEzU8ABu3NX8Oeo0kBQ@mail.gmail.com> <op.w2zvnv0r8527sy@212-182-167-131.ip.telfort.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
The backup in /var/backups was a copy of the current DB, so it was not
usable,
however there was/is and older backup that was not corrupt.  So I restored
it into
/var/db and then update that one.

Jim


On Fri, Sep 6, 2013 at 10:53 AM, Ronald Klop <ronald-freebsd8@klop.yi.org>wrote:

> 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 <j.ballantine@gmail.com>
> 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 <j.ballantine@gmail.com>
>> Date: Wed, Sep 4, 2013 at 3:09 PM
>> Subject: Re: Package database
>> To: Freddie Cash <fjwcash@gmail.com>
>>
>>
>> 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 <j.ballantine@gmail.com
>> >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 <fjwcash@gmail.com> wrote:
>>>
>>>  On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine <j.ballantine@gmail.com
>>>> >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<http://lists.freebsd.org/mailman/listinfo/freebsd-stable>;
>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@**
>> freebsd.org <freebsd-stable-unsubscribe@freebsd.org>"
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADcmFMV8i%2Baic4uFfb_qbs%2BGjFPign766G5FfQuVd0nQss3ECQ>