[OpenIndiana-discuss] Is it safe to remove /var/pkg/cache directory?

Toomas Soome tsoome at me.com
Thu Dec 14 10:52:05 UTC 2023



> On 14. Dec 2023, at 12:43, Marcel Telka <marcel at telka.sk> wrote:
> 
> On Thu, Dec 14, 2023 at 11:37:52AM +0100, Aurélien Larcher wrote:
>> On Thu, Dec 14, 2023 at 10:38 AM Marcel Telka <marcel at telka.sk> wrote:
>> 
>>> On Thu, Dec 14, 2023 at 09:30:53AM +0100, Predrag Zečević wrote:
>>>> I understand network - there can be a lot of problems preventing fast
>>>> download, but *pkg* showing packages decreasing...
>>> 
>>> Yes, it looks like a bug.  Feel free to file a bugreport.
>>> 
>>>> Also, is this OK (15GB of OI packages seems too much to me)?
>>>> 
>>>> :; pfexec du -sh /var/pkg/publisher/*
>>>> 21M     /var/pkg/publisher/hipster-encumbered
>>>> 15G     /var/pkg/publisher/openindiana.org
>>> 
>>> Not sure if it is okay or not.  Here is mine:
>>> 
>>> # du -sh /var/pkg/publisher/*
>>> 2.30M   /var/pkg/publisher/hipster-encumbered
>>> 1019M   /var/pkg/publisher/openindiana.org
>>> #
>>> 
>>> I fully update usually at least once a week with a reboot (and new BE).
>>> This update includes bits from illumos-gate.  I also update daily
>>> (without reboot) to have always up-to-date userland bits.  I do have
>>> (almost) all packages installed.  It is my oi and illumos build machine.
>>> 
>> 
>> I cannot remember which option it is but you can autopurge the cache after
>> successful install using a pkg property.
> 
> It was already discussed.  It is flush-content-cache-on-success.
> I'm not sure if /var/pkg/publisher/openindiana.org is considered as
> content-cache - see pkg(1) man page.
> 

This sounds like there must be some external and/or leftover files (cores?). Some of might be possible to clean up with maintenance commands like pkg refresh, purge-history etc. can not really suggest anything specific without knowing pkg internals.

Of course, one can experiment there — create new BE or backup BE and then you have option for quick recovery;)

rgds,
toomas


More information about the openindiana-discuss mailing list