Norm Jacobs wrote:

> Is there some supported method of purging the cached cruft in /var/pkg?

The only supported way is to change the flush-content-cache-on-success
property to true.  You'll need to edit /var/pkg/cfg_cache by hand to set
this at the moment.  Then just add a package, and it should churn away and
remove all of /var/pkg/download.  Note that this will probably take some
time, as you'll have a lot of files there still in the old cache format,
which is extremely inefficient to crawl through.  So be prepared.

You can simulate that by simply removing /var/pkg/download.  Note that if
any snapshots still hold onto this, you're not actually going to reduce
disk usage until those snapshots have been destroyed.  /var/pkg/download
really needs to be its own dataset, outside the BE, but that's not
officially supported.  Still, several folks I know, including myself, run
that way, and it usually works, modulo a couple of hiccups over time.

Also, none of the old manifests are ever removed by the system.  I think
there's an RFE to have some sort of garbage collection subcommand, but it's
not implemented.  You pretty much just have to know what to get rid of.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to