Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You could add

metadata_timer_sync=0

to /etc/dnf/dnf.conf to completely disable automatic metadata synchronizing.

See the docs for information on what that does: https://dnf.readthedocs.io/en/latest/conf_ref.html

You could add

metadata_timer_sync=0

to /etc/dnf/dnf.conf /etc/dnf/dnf.conf to completely disable automatic metadata synchronizing.

See the docs [1] for information on what that does: does. [1] https://dnf.readthedocs.io/en/latest/conf_ref.html

Another option is to set

metadata_expire=-1

to make the repo never considered expired. You can do this for certain repos or globally in dnf.conf.

Under [1] it also says: Expire of metadata can bee also triggered by change of timestamp of configuration files (dnf.conf, <repo>.repo). See also check_config_file_age([2]). So, at some point you want to stop messing around with dnf.conf and *.repo and let dnf do its thing.

  • [1] https://dnf.readthedocs.io/en/latest/conf_ref.html
  • [2] https://dnf.readthedocs.io/en/latest/conf_ref.html#check-config-file-age-label

You could add

metadata_timer_sync=0

to /etc/dnf/dnf.conf to completely disable automatic metadata synchronizing.

See [1] for information on what that does. [1] https://dnf.readthedocs.io/en/latest/conf_ref.htmldoes.

Another option is to set

metadata_expire=-1

to make the repo never considered expired. You can do this for certain repos or globally in dnf.conf.

Under [1] it also says: Expire of metadata can bee also triggered by change of timestamp of configuration files (dnf.conf, <repo>.repo). See also check_config_file_age([2]). So, at some point you want to stop messing around with dnf.conf and *.repo and let dnf do its thing.

  • [1] https://dnf.readthedocs.io/en/latest/conf_ref.html
  • [2] https://dnf.readthedocs.io/en/latest/conf_ref.html#check-config-file-age-label