Re: Deletion of just installed port-packages (excluding base): success
- In reply to: Mark Millard : "Re: Deletion of just installed port-packages (excluding base): success"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Aug 2025 00:56:56 UTC
Dear,
I did it on all my servers (pkg clean after an update, automatic script) and as usual forget to do it on my own laptop :)
Regards,
Yves Guerin
Le jeudi 7 août 2025 à 16:47:01 UTC−5, Mark Millard <marklmi@yahoo.com> a écrit :
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