Technology Insights

List Enabled Yum Repos On CentOS Linux Server

Earlier today while responding to a comment in an older article I requested that the person leaving the comment provide information to show what repositories were enabled in YUM. I figured printing out the configured YUM repositories could be useful to others so below is an example command and example output to display what YUM repos are configured on a CentOS Linux server.

Technology Errors

Yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again

When updating CentOS or RedHat via yum its possible to receive an error similar to the below. This error will cause an issue where yum will not work even though as described below the issue is typically isolated to one yum repository.

Error:Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again