Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 11:30:00 -0800
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        <freebsd-current@freebsd.org>
Subject:   Re: Problem with pkg
Message-ID:  <5c593f14409ce5e6e633e69bc6c44135@ultimatedns.net>
In-Reply-To: <977961980.1791329.1488200543673@mail.yahoo.com>
References:  <977961980.1791329.1488200543673.ref@mail.yahoo.com>, <977961980.1791329.1488200543673@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Feb 2017 13:02:23 +0000 (UTC) Filippo Moretti
<filippomore@yahoo.com> wrote

> After a blackout caused by my wife I only get a few pkg shown with the
> command pkg info while they should be hundreds.I also get this error message
> when trying to install packages by pkg installpkg: Repository FreeBSD load
> error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file
> or directory(I do have a file name local.sqlite)Is there a way to recover the
> pkg database or should I reinstall the OS.Filippo 
>
> 
perodic(8) creates them for you. As a rule, you should be able
to find a suitable backup copy in
/var/backups
in the form of pkgdb.bak.tbz*

Hope this helps!

--Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5c593f14409ce5e6e633e69bc6c44135>