On Wed, Aug 09, 2023 at 08:51:52AM -0400, Greg Troxel wrote: > At this point I think you have having a pkgin problem which I am not > super good at diagnosing. I think, that you can remove the contents of > /var/db/pkgin and it will regenerate. The idea of "keep" packages is > actually stored in the automatic=YES variable in the pkgdb.
pkgin's database being re-created is normal, a pkgin update is enough to rebuild it based on the regular pkg database. So I think there is a problem there. Has pkg_admin rebuild/rebuild-tree been tried already?