CentOS 7.x troubleshooting yum issues

From Notes_Wiki
Revision as of 06:11, 23 January 2017 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_yum|CentOS 7.x yum</yambe:breadcrumb> =CentOS7.x troubleshooting yum issues= ==repomd.xml does not match metalink for epel== This problem may ha...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_yum|CentOS 7.x yum</yambe:breadcrumb>

CentOS7.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.