Re: Deletion of just installed port-packages: a question [Trying to avoid being part of other somewhat-related discussions]

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Fri, 08 Aug 2025 17:34:27 UTC
Mark Millard <marklmi@yahoo.com> writes:
> Also: I'm not sure that pkg clean -n is appropriate for main or
> stable/* where the upstream updates can happen multiple times per day
> and could easily lead to removals from /var/cache/pkg/ between
> deliberate pkgbase updates.

imo `pkg clean` without -f (which it currently doesn't have) should not
remove a cached file, even if out of date, if it corresponds to the
version that's currently installed.  That's not currently the case, but
it should be relatively easy to implement.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org