I'm on CentOS 6.6. Is there a way to determine when a repository was added to the list of repositories searched by yum?

yum repolist -v

Returns when the repos were last updated, but not when they were enabled.

  • You can try to infer this information by viewing the yum logs: sudo grep '<reponame>' /var/log/yum.log but enables/disables may not be logged at all with the yum --enablerepo and yum-config-manager commands. I tested these two commands, enabling and disabling a given repo on my centos machine and couldn't find anything within any logs. Enable/disable dates aren't visible either with yum repolist nor with repoquery. :/ – baelx Jun 14 '18 at 18:13
  • The closest thing I got was checking the time stamps in /etc/yum.repos.d/. It is unclear if the time stamps get modified during a repo related update. – irritable_phd_syndrom Jun 14 '18 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.