Product SiteDocumentation Site

4.4. Yum Plugins

Yum provides plugins that extend and enhance its operations. Certain plugins are installed by default. Yum always informs you which plugins, if any, are loaded and active whenever you call any yum command:
~]# yum info yum
Loaded plugins: langpacks, presto, refresh-packagekit
[output truncated]
Note that the plugin names which follow Loaded plugins are the names you can provide to the --disableplugins=plugin_name option.

4.4.1. Enabling, Configuring and Disabling Yum Plugins

To enable Yum plugins, ensure that a line beginning with plugins= is present in the [main] section of /etc/yum.conf, and that its value is set to 1:
You can disable all plugins by changing this line to plugins=0.

Disabling all plugins is not advised

Disabling all plugins is not advised because certain plugins provide important Yum services. Disabling plugins globally is provided as a convenience option, and is generally only recommended when diagnosing a potential problem with Yum.
Every installed plugin has its own configuration file in the /etc/yum/pluginconf.d/ directory. You can set plugin-specific options in these files. For example, the following is the content of refresh-packagekit.conf, the configuration file for the refresh-packagekit plugin:
Plugin configuration files always contain a [main] section (similar to Yum's /etc/yum.conf file) in which there is (or you can place if it is missing) an enabled= option that controls whether the plugin is enabled when you run yum commands.
If you disable all plugins by setting enabled=0 in /etc/yum.conf, then all plugins are disabled regardless of whether they are enabled in their individual configuration files.
If you merely want to disable all Yum plugins for a single yum command, use the --noplugins option.
If you want to disable one or more Yum plugins for a single yum command, add the --disableplugin=plugin_name option to the command. For example, to disable the presto plugin while updating a system, type:
~]# yum update --disableplugin=presto
The plugin names you provide to the --disableplugin= option are the same names listed after the Loaded plugins line in the output of any yum command. You can disable multiple plugins by separating their names with commas. In addition, you can match multiple plugin names or shorten long ones by using glob expressions:
~]# yum update --disableplugin=presto,refresh-pack*