[OpenIndiana-discuss] what pkg data can safely be removed?
    Tim Mooney 
    Tim.Mooney at ndsu.edu
       
    Mon Jun 16 19:52:37 UTC 2025
    
    
  
All-
I've asked about cleaning the pkg cache previously:
 	https://openindiana.org/pipermail/openindiana-discuss/2021-February/023844.html
At the time, it seemed like doing
 	pkg set-property flush-content-cache-on-success True
as documented here:
 	https://docs.oracle.com/cd/E53394_01/html/E54739/minvarpkg.html
and then using 'pkg purge-history' to purge all update history were the
best options to minimize what's kept under /var/pkg.
I'm wondering about other data that I think may have been orphaned by pkg,
though.
My OI workstation started as oi151a9 and then was converted to hipster and
has been updated regularly since then.  It's seen a lot of updates:
$ sudo du -h -s /var/pkg/*
987M    /var/pkg/cache
7K      /var/pkg/gui_cache
22.4M   /var/pkg/history
51.2M   /var/pkg/license
512     /var/pkg/lock
561K    /var/pkg/lost+found
512     /var/pkg/modified
5.50K   /var/pkg/pkg5.image
60.7G   /var/pkg/publisher
1.50K   /var/pkg/ssl
184M    /var/pkg/state
$ sudo find /var/pkg/publisher -print | wc -l
  1465282
I have directories under the '/var/pkg/license' dir from 2013 and 2016.
The same is true in /var/pkg/publisher/openindiana.org .  Many of the
directories are from 2013 and 2016.
How can I safely tell if these license directories or package directories
under a publisher are still valid, or if (as I suspect) at least some of
them are no longer being managed by pkg?
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
    
    
More information about the openindiana-discuss
mailing list