[OpenIndiana-discuss] Is it safe to remove /var/pkg/cache directory?
Marcel Telka
marcel at telka.sk
Thu Dec 14 10:43:15 UTC 2023
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.
--
+-------------------------------------------+
| Marcel Telka e-mail: marcel at telka.sk |
| homepage: http://telka.sk/ |
+-------------------------------------------+
More information about the openindiana-discuss
mailing list