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.
The Yum, or Yellowdog Updater Modified, is a great package manager if you are familiar with how to use it. If you have a bunch of repositories activated it can be useful to know what packages are available via a specific repository. It is possible to install RPM packages via a specific repository which if another package you are installing requires a specific version of a package this can be useful. Below are a couple examples of using the “yum list” command.