I can clear the cache with yum clean all
or, more quickly, with yum clean expire-cache
.
However, without actually clearing the cache, I would simply like to find out when the cache will expire on its own.
How can I find out when yum's metadata is set to expire?
I use CFEngine for self-healing infrastructure so the packages that should be installed on the servers I am handling, will be installed, shortly after yum clean expire-cache
is run. I've tested this. If I can check the metadata expiration time on one of the servers that I haven't run yum clean expire-cache
on, I will have some idea of when these servers will self-heal.