CentOS 7.x troubleshooting yum issues

From Notes_Wiki
Revision as of 06:54, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > System Administration > Package management > Yum > CentOS 7.x troubleshooting yum issues

repomd.xml does not match metalink for epel

This problem may happen if there is wrong metadata cached for particular repistory. To solve this use:

   yum --enablerepo=epel clean metadata

and try the yum command again. This time fresh metadata would be built. If you want to clear metadata for all repositories then use:

   yum clean metadata

This is just a high level fix. The actual issue is often caused by ISP/security devices which redirect any request to a standard advertizement / login page. Often yum ends up downloading that advertizement / login page and hence metadata check fails. Opening any URL such as 'http://www.sbarjatiya.com', before running yum, after cleaning metadata might help in avoiding the issue to reappear.


Home > CentOS > CentOS 7.x > System Administration > Package management > Yum > CentOS 7.x troubleshooting yum issues