Software >> OS >> Unix >> Linux >> Package Managers >> yum >> RHEL >> How are yum plugins enabled

 

## via the respective conf file in /etc/yum/pluginconf.d

[root@server1 pluginconf.d]# pwd
/etc/yum/pluginconf.d

[root@server1 pluginconf.d]# ls -alh
total 20K
drwxr-xr-x. 2 root root 140 Jun 12 12:16 .
drwxr-xr-x. 6 root root 100 Jun 11 12:17 ..
-rw-r--r--. 1 root root 372 Jun 11 12:07 langpacks.conf
-rw-r--r--. 1 root root  17 Apr 27 21:54 product-id.conf
-rw-r--r--. 1 root root 178 Oct 19  2017 rhnplugin.conf
-rw-r--r--. 1 root root 858 Apr 27 21:54 search-disabled-repos.conf
-rw-r--r--. 1 root root  17 Apr 27 21:54 subscription-manager.conf


[root@server1 pluginconf.d]# grep enabled *.conf
langpacks.conf:enabled=1
product-id.conf:enabled=1
rhnplugin.conf:enabled = 0
rhnplugin.conf:#enabled = 1
search-disabled-repos.conf:enabled=1
search-disabled-repos.conf:# Repositories matching the patterns listed in ignored_repos will not be enabled by the plugin
subscription-manager.conf:enabled=1

## To disable subscription-manager plugin for yum, set enabled=0 in subscription-manager.conf