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: GLib-WARNING **: gmessages.c:387: could not find handler with id XXXXX for domain

Earlier this morning while working on a CentOS Linux development server I received errors when doing anything with the yum package manager. I believe the error started after upgrading the kernel on the server from kernel version 2.6.18-164.15.1.el5 to kernel version 2.6.18-194.3.1.el5. After upgrading the kernel yum would output the same error multiple times as shown in the below output example.

Technology Insights

Use Yum To List Available Packages In A Specific Repository On CentOS Linux

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.