How to disable/enable yum plugins in Red Hat Enterprise Linux?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • How to disable/enable all yum plugins?

Resolution

The following instructions can be referred to disable all yum plugins.

  • Open '/etc/yum.conf'.
  • To disable yum plugins, change the value for plugins to 0.
        plugins = 0
  • To enable yum plugins, change the value for enabled to 1

NOTE: Disabling all plug-ins is not advised
- Disabling all plug-ins is not advised because certain plug-ins provide important Yum services. In particular, rhnplugin provides support for RHN Classic, and product-id and subscription-manager plug-ins provide support for the certificate-based Content Delivery Network (CDN). Disabling plug-ins globally is provided as a convenience option, and is generally only recommended when diagnosing a potential problem with Yum. For more details, see Deployment_Guide-Yum Plug-ins

  • Component
  • yum

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.

Comments