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? Thanks Jim Ballantine
On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine <j.ballantine at 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 at gmail.com
Quoth Freddie Cash <fjwcash at gmail.com>:> On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine <j.ballantine at 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. :)With either package system /etc/periodic/daily/220.backup-pkgdb backs up the whole of /var/db/pkg into /var/backups/pkgdb.bak.tbz*. With pkgng /usr/local/etc/periodic/daily/411.pkg-backup also backs up the pkgng db into /var/backups/pkgng.db; probably this means 220.backup-pkgdb should be turned off, but this doesn't happen by default. Ben
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 at gmail.com> Date: Wed, Sep 4, 2013 at 3:09 PM Subject: Re: Package database To: Freddie Cash <fjwcash at 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 at 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 at gmail.com> wrote: > >> On Wed, Sep 4, 2013 at 10:41 AM, Jim Ballantine <j.ballantine at 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 at gmail.com >> > >