[OpenIndiana-discuss] safely cleanup pkg cache?

Richard L. Hamilton rlhamil at smart.net
Sun Feb 21 08:29:15 UTC 2021


Before you do that, just to cover the obvious, have you gotten rid of old boot environments (and the snapshots shown with beadm list -a) ?

> On Feb 21, 2021, at 01:45, Tim Mooney via openindiana-discuss <openindiana-discuss at openindiana.org> wrote:
> 
> 
> All-
> 
> My space-constrained OI hipster build VM is running low on space.
> 
> It looks like either pkg caching or pkg history is using quite a lot of
> space:
> 
> $ pfexec du -ks /var/pkg/* | sort -n
> 0       /var/pkg/gui_cache
> 0       /var/pkg/lock
> 0       /var/pkg/modified
> 0       /var/pkg/ssl
> 6       /var/pkg/pkg5.image
> 955     /var/pkg/lost+found
> 5557    /var/pkg/history
> 23086   /var/pkg/license
> 203166  /var/pkg/cache
> 241106  /var/pkg/state
> 9271692 /var/pkg/publisher
> 
> What is the correct, safe way to clean up anything from pkg that I don't
> need?
> 
> The closest information I've found is an article from Oracle on "Minimize
> Stored Image Metadata":
> 
> 	https://docs.oracle.com/cd/E53394_01/html/E54739/minvarpkg.html
> 
> This suggests changing the 'flush-content-cache-on-success' property
> to true (OI defaults to False).
> 
> Is that it, or are there other (generally safe) cleanup steps that I could
> take too?  Is 'pkg purge-history' a good idea?
> 
> Thanks,
> 
> Tim
> -- 
> Tim Mooney                                             Tim.Mooney at ndsu.edu
> Enterprise Computing & Infrastructure /
> Division of Information Technology    /                701-231-1076 (Voice)
> North Dakota State University, Fargo, ND 58105-5164
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 



More information about the openindiana-discuss mailing list