Re: Deletion of just installed port-packages (excluding base): success

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 07 Aug 2025 21:46:45 UTC
On Aug 7, 2025, at 14:41, Mark Millard <marklmi@yahoo.com> wrote:

> On Aug 7, 2025, at 13:54, Yves Guérin <yvesguerin@yahoo.ca> wrote:
> 
>> Dear
>> 
>>> Personally, I would rarely clean the cache
>> 
>> I did everytime I need space in /var so not desirable for my point of view.
>> 
>> Regards,
>> 
>> Yves Guerin
> 
> It might be that what was listed was only ones "that have
> been superseded by newer versions, and any packages that
> are no longer provided". (From "man pkg-clean" in my
> environment.)

Although, thnking about it, main ( and stable/* ) can have
superseded versions of some or all pkg's twice or so a day.
Removal at that rate, if not updating at that rate, might
not be the best of ideas. So not cleaning automatically
when not updating the FreeBSD-* may be what is appropriate.

>> Le jeudi 7 août 2025 à 16:23:03 UTC−4, Graham Perrin <grahamperrin@gmail.com> a écrit : 
>> 
>> 
>> On 07/08/2025 16:57, Mark Millard wrote:
>>> … Actually the file indicates that /var/cache/pkg/FreeBSD-*.pkg
>>> files would be deleted by the "pkg clean" (if -n had not been
>>> provided):
>>> 
>>> QUOTE
>>> The following package files will be deleted:
>>> /var/cache/pkg/FreeBSD-libexecinfo-dev-lib32-15.snap20250715051601~2b1b4b0e75.pkg
>>> /var/cache/pkg/FreeBSD-telnet-man-15.snap20241026125659.pkg
>>> . . .
>>> /var/cache/pkg/FreeBSD-bsdinstall-dbg-15.snap20250720000631.pkg
>>> /var/cache/pkg/FreeBSD-libexecinfo-dbg-15.snap20250720000631.pkg
>>> The cleanup will free 1 GiB
>>> END QUOTE
>>> 
>>> I do not know if this would be desired vs. not.
>>> 
>>> …
>> 
>> Personally, I would rarely clean the cache. 
>> I think, we're partly experimenting with what's possible; not necessarily what's recommended (or desirable). 
>> I might demonstrate the effect of -fqy but that's certainly not a recommendation; and so on. 
>> HTH



===
Mark Millard
marklmi at yahoo.com