From Fedora Project Wiki

< Mock

Revision as of 12:43, 5 December 2014 by Msuchy (talk | contribs) (Created page with "== Root_cache Plugin == This plugin mounts /var/cache/yum of your machine to chroot. It mount directory config_opts['plugin_conf']['root_cache_opts']['dir'], which is be defau...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Root_cache Plugin

This plugin mounts /var/cache/yum of your machine to chroot. It mount directory config_opts['plugin_conf']['root_cache_opts']['dir'], which is be default "/var/cache/mock/NAME_OF_CHROOT/yum_cache/" and mount it as /var/cache/yum in chroot. It is enabled by default.

Configuration

This plugin is enabled by default and has the following values built-in:

config_opts['plugin_conf']['yum_cache_enable'] = True
config_opts['plugin_conf']['yum_cache_opts'] = {}
config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
config_opts['plugin_conf']['yum_cache_opts']['max_metadata_age_days'] = 30
config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
  • max_age_days - if age_check is True and cache is older than this value, the cache is invalidated.
  • dir - where to put cached files