> On 13. Feb 2025, at 00:29, Kevin Oberman <rkober...@gmail.com> wrote:
> 
> 
> In my upgrade of pkg this morning, I shot myself in the foot. I inadvertently 
> killed the update while it was installing the new version, leaving my pkg 
> database all messed up, or at least the entry for pkg is. I have a clean 
> backup of pkg.sql.xz, but I can't figure out how to restore it.
> 
> 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
> 
> Any idea of what I can do to get a working pkg? I'd like to just blow away 
> the current database and then bootstrap pkg. I'm just not sure of what to 
> delete. I know there is a sqlite db somewhere. I've rummaged around in it in 
> hte past, but it's been years and I can't seem to find it.
> 
> Any clue as to how to get pkg reinstalled would be much appreciated.

Does this help? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269810#c4

-m

Reply via email to