{"id":155,"date":"2024-01-11T05:42:48","date_gmt":"2024-01-11T05:42:48","guid":{"rendered":"https:\/\/resellerjungle.com\/articles\/?p=155"},"modified":"2024-01-11T06:25:06","modified_gmt":"2024-01-11T06:25:06","slug":"activate-or-deactivate-yum-plugins","status":"publish","type":"post","link":"https:\/\/resellerjungle.com\/articles\/activate-or-deactivate-yum-plugins\/","title":{"rendered":"How to activate or deactivate YUM plugins"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A Yum plugin is a modular piece of software that extends the functionality of the Yum package manager in RPM-based Linux distributions, such as <a href=\"https:\/\/resellerjungle.com\/#\" data-type=\"link\" data-id=\"https:\/\/resellerjungle.com\/#\">CentOS<\/a>, Fedora, and Red Hat Enterprise Linux. These plugins provide additional features, optimizations, or customizations to enhance the package management experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yum plugins can perform various tasks, including:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Speeding up package downloads:<\/strong> Plugins like <code>fastestmirror<\/code> can determine the fastest mirror from which to download packages, optimizing download times.<\/li>\n\n\n\n<li><strong>Enhancing security:<\/strong> Plugins like <code>yum-plugin-security<\/code> can provide information about security vulnerabilities associated with installed packages.<\/li>\n\n\n\n<li><strong>Enabling additional repositories:<\/strong> Some plugins help manage and enable third-party repositories, expanding the available software packages.<\/li>\n\n\n\n<li><strong>Automating tasks:<\/strong> Plugins can automate specific tasks, such as cleaning up obsolete packages or handling dependencies more efficiently.<\/li>\n\n\n\n<li><strong>Adding new commands or options:<\/strong> Plugins can introduce new commands or options to the Yum command-line interface, allowing users to perform tasks beyond the basic package installation and removal.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Examples of Yum plugins include <code>fastestmirror<\/code>, <code>versionlock<\/code>, <code>security<\/code>, <code>post-transaction-actions<\/code>, and more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can list the available Yum plugins on your system using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum list | grep ^yum-plugin<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1024x549.png\" alt=\"\" class=\"wp-image-156\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1024x549.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-300x161.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-768x412.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin.png 1238w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To enable, disable, or configure a specific plugin, you can use the <code>yum-config-manager<\/code> command or edit the configuration files in the <code>\/etc\/yum\/pluginconf.d\/<\/code> directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep in mind that the availability of plugins may vary between different Linux distributions and Yum versions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see all active plug-ins, run a yum command on the terminal. From the output below, you can see that the&nbsp;<strong>fastestmirror<\/strong>&nbsp;plug-in is loaded.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum search nginx<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"204\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1-1024x204.png\" alt=\"\" class=\"wp-image-161\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1-1024x204.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1-300x60.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1-768x153.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-1.png 1307w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#enabling-yum-plugins\">Enabling YUM Plugins<\/a><\/li><li><a href=\"#disabling-yum-plugins\">Disabling YUM Plugins<\/a><\/li><li><a href=\"#installing-and-configuring-extra-yum-plugins\">Installing and Configuring Extra YUM Plugins<\/a><\/li><li><a href=\"#disable-yum-plugins-in-command-line\">Disable YUM Plugins in Command Line<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enabling-yum-plugins\">Enabling YUM Plugins<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling Yum plugins refers to the process of activating additional modular components that extend and enhance the functionality of the Yum package manager on RPM-based Linux systems. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These plugins provide supplementary features, optimizations, and customization options to improve the overall package management experience. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling Yum plugins allows users to access and leverage these additional capabilities for tasks such as speeding up package downloads, enhancing security, or automating specific functions within the package management system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To enable yum plug-ins, ensure that the directive&nbsp;<code>plugins=1<\/code>&nbsp;(<strong>1<\/strong>&nbsp;meaning on) exists under the&nbsp;<strong>[main]<\/strong>&nbsp;section in the&nbsp;<strong>\/etc\/yum.conf<\/strong>&nbsp;file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/yum.conf<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"190\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2-1024x190.png\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2-1024x190.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2-300x56.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2-768x143.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2-1536x286.png 1536w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-2.png 1802w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disabling-yum-plugins\">Disabling YUM Plugins<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Disabling Yum plugins involves deactivating specific modular components that extend the functionality of the Yum package manager on RPM-based Linux systems. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a Yum plugin is disabled, it ceases to influence or modify the behavior of the package manager. This action can be useful in scenarios where users want to revert to the default configuration, eliminate certain features, or troubleshoot issues related to a particular plugin. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By disabling Yum plugins, users have control over which additional functionalities are active or inactive during the package management processes on their Linux systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To disable yum plug-ins, simply change the value above to&nbsp;<code>0<\/code>&nbsp;(meaning off), which disables all plug-ins globally.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plugins=0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">At this stage, it is useful to note that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Since a few plug-ins (such as&nbsp;<strong>product-id<\/strong>&nbsp;and&nbsp;<strong>subscription-manager<\/strong>) offer fundamental yum functionalities, it is not recommended to turn off all plug-ins especially globally.<\/li>\n\n\n\n<li>Secondly, disabling plug-ins globally is allowed as an easy way out, and this implies that you can use this provision when investigating a likely problem with yum.<\/li>\n\n\n\n<li>Configurations for various plug-ins are located in&nbsp;<strong>\/etc\/yum\/pluginconf.d\/<\/strong>.<\/li>\n\n\n\n<li>Disabling plug-ins globally in&nbsp;<strong>\/etc\/yum.conf<\/strong>&nbsp;overrides settings in individual configuration files.<\/li>\n\n\n\n<li>And you can also disable a single or all yum plug-ins when running yum, as described later on.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-and-configuring-extra-yum-plugins\">Installing and Configuring Extra YUM Plugins<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can view a list of all yum plug-ins and their descriptions using this command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum search yum-plugin<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"520\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3-1024x520.png\" alt=\"\" class=\"wp-image-166\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3-1024x520.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3-300x152.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3-768x390.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3-1536x781.png 1536w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-3.png 1702w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To install a plug-in, use the same method for installing a package. For instance we will install the&nbsp;<strong>changelog<\/strong>&nbsp;plug-in which is used to display package changelogs before\/after updating.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install yum-plugin-changelog<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4-1024x454.png\" alt=\"\" class=\"wp-image-169\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4-1024x454.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4-300x133.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4-768x341.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4-1536x682.png 1536w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-4.png 1895w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have installed,&nbsp;<strong>changelog<\/strong>&nbsp;will be enabled by default, to confirm take look into its configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/yum\/pluginconf.d\/changelog.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can view the&nbsp;<strong>changelog<\/strong>&nbsp;for a package (<strong>httpd<\/strong>&nbsp;in this case) like below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum changelog httpd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disable-yum-plugins-in-command-line\">Disable YUM Plugins in Command Line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As stated before, we can also turn off one or more plug-ins while running a yum command by using these two important options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>.<\/strong>&#8211;noplugins \u2013 turns off all plug-ins<br><strong>.<\/strong>&#8211;disableplugin=plugin_name \u2013 disables a single plug-ins<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can disable all plug-ins as in this yum command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum search --noplugins yum-plugin<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"450\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5-1024x450.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5-1024x450.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5-300x132.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5-768x337.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5-1536x675.png 1536w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-5.png 1700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The next command disables the plug-in,&nbsp;<strong>fastestmirror<\/strong>&nbsp;while installing&nbsp;<strong>httpd<\/strong>&nbsp;package.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install --disableplugin=fastestmirror httpd<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6-1024x428.png\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6-1024x428.png 1024w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6-300x125.png 300w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6-768x321.png 768w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6-1536x642.png 1536w, https:\/\/resellerjungle.com\/articles\/wp-content\/uploads\/2024\/01\/yum-plugin-6.png 1893w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you&#8217;ve an idea on enable\/ disable and install yum plugins in CentOs \/ RHEL<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Yum plugin is a modular piece of software that extends the functionality of the Yum package manager in RPM-based&hellip;<\/p>\n","protected":false},"author":3,"featured_media":176,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":14,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/155\/revisions\/186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/media\/176"}],"wp:attachment":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}