Re: Regular NetBSD packaging and pkgin

2021-07-16 Thread Mark Carroll
On 12 Jul 2021, Greg Troxel wrote:

> Benny Siegert  writes:
(snip)
>> It sounds like pkgin and your pkg_* tools disagree on what the correct
>> PKG_DBDIR is. Probably one of them is using /var/db/pkg and the other
>> /usr/pkg/pkgdb. Check if you have both, set the location in the
>> respective config files explicitly, and try merging the two db dirs.
>
> Agreed, and details at:
>
>   https://pkgsrc.org/pkgdb-change/

Thank you both: thanks to the hints and those details, I have now
restored the odd system to sanity, basically by using "pkg_delete -f",
removing /usr/pkg/pkgdb/, then "pkgin install -f" and "pkgin unkeep"
on what I deleted. It helped that the stray packages were simply
dependencies that had no interesting associated configuration that
I wanted to preserve.

-- Mark


Re: Regular NetBSD packaging and pkgin

2021-07-12 Thread Greg Troxel

Benny Siegert  writes:

> On Mon, Jul 12, 2021 at 2:46 AM Mark Carroll  wrote:
>> Does anybody have an idea what I messed up on the
>> latter? I first noticed when "pkg_admin audit" was telling me less than
>> I expected on that system.
>
> It sounds like pkgin and your pkg_* tools disagree on what the correct
> PKG_DBDIR is. Probably one of them is using /var/db/pkg and the other
> /usr/pkg/pkgdb. Check if you have both, set the location in the
> respective config files explicitly, and try merging the two db dirs.

Agreed, and details at:

  https://pkgsrc.org/pkgdb-change/


signature.asc
Description: PGP signature


Re: Regular NetBSD packaging and pkgin

2021-07-12 Thread Benny Siegert
On Mon, Jul 12, 2021 at 2:46 AM Mark Carroll  wrote:
> Does anybody have an idea what I messed up on the
> latter? I first noticed when "pkg_admin audit" was telling me less than
> I expected on that system.

It sounds like pkgin and your pkg_* tools disagree on what the correct
PKG_DBDIR is. Probably one of them is using /var/db/pkg and the other
/usr/pkg/pkgdb. Check if you have both, set the location in the
respective config files explicitly, and try merging the two db dirs.

-- 
Benny


Regular NetBSD packaging and pkgin

2021-07-11 Thread Mark Carroll
I've somehow misconfigured something and can't work out what. On one
NetBSD 9.2 system, if I pkgin install something, then "pkg_info -u"
reports it as installed. On the other, pkg_info doesn't seem to know
anything about what I installed with pkgin, though "pkgin show-keep"
still shows it fine. Does anybody have an idea what I messed up on the
latter? I first noticed when "pkg_admin audit" was telling me less than
I expected on that system.

-- Mark