Re: Trying to understand base system packages

From: Lexi Winter <ivy_at_freebsd.org>
Date: Thu, 11 Dec 2025 15:39:14 UTC
Sad Clouds wrote in <20251211152822.d5d3c51766a25b14f37eefd4@gmail.com>:
> # pkg info | grep metapackage
> 
> Then for each metapackage I executed:
> 
> # pkg delete -f FreeBSD-set-XXX
> 
> This removed all sets, including base. The individual packages are
> still there. I did not touch them.
> 
> If I now attempt to run "pkg autoremove" to see which packages need to
> be marked manually installed, pkg goes into infinite loop, gradually
> consuming memory at a rate of 1 MiB every 5 seconds.

this sounds like a pkg bug (it is certainly not intentional behaviour),
which you can report at <https://github.com/freebsd/pkg>.  i suggest
saving a copy of /var/db/pkg from the affected system, as this might
be important to diagnose the issue.