How do I debug the yum plugin
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Issue
Due some errors we need to get some debug output from our yum plugin.
Resolution
Reconfigure the /etc/yum.conf for the time you want to investigate the error.
Set the 'debuglevel' to a value of 10 to get more verbosity.
For example:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=10
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
# Default.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
The output will be provided on the screen.
Root Cause
The yum plugin has a debugging functionality implemented.
Diagnostic Steps
- yum update
- yum repolist
- Any yum operation in general.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
