On Wed 12 Feb 22:03, Kevin Oberman wrote:
> On Wed, Feb 12, 2025 at 4:31 PM Dag-Erling Smørgrav <d...@freebsd.org> wrote:
> 
> > Kevin Oberman <rkober...@gmail.com> writes:
> > > Any pkg command gets:
> > > The package management tool is not yet installed on your system.
> > > Do you want to fetch and install it now? [y/N]:
> > > but trying to do so gets:  the most recent version of pkg-2.0.5 is
> > already installed
> >
> > sudo pkg bootstrap -f
> >
> > DES
> > --
> > Dag-Erling Smørgrav - d...@freebsd.org
> >
> 
> Thanks to all of you  for suggestions. DES, you hit the jackpot.  Since
> there is no man page for the pkg backup command, I was unaware of the -f
> option, though I should have, at least, thought to try .
> As it turned out, I did not need to restore the the db. Just get pkg
> reinstalled.

pkg(7) which is /usr/sbin/pkg documents the bootstrap (and the -f)
pkg(8) provided by the pkg package also document bootstrap and the -f.

> 
> I am still confused as to the sqlite DB that I know I have looked at in the
> past.  I thought that it was in /var/db/pkg, but it is not there... just
> distfiles. I figure that the database has to be somewhere.

It is in /var/db/pkg/local.sqlite

Best regards,
BApt

Reply via email to