{"id":5950,"date":"2015-03-06T12:50:32","date_gmt":"2015-03-06T04:50:32","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5950"},"modified":"2023-04-28T09:47:16","modified_gmt":"2023-04-28T09:47:16","slug":"epel-yum-repository-on-linux","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/epel-yum-repository-on-linux\/","title":{"rendered":"How to Install EPEL Yum Repository on Linux CentOS\/RHEL: 8, 7, or 6"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone wp-image-6046 img-fluid lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/03\/centos_how_to_enable_epel.jpg\" alt=\"EPEL Yum Repository\" width=\"600\" height=\"230\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/03\/centos_how_to_enable_epel.jpg 600w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/03\/centos_how_to_enable_epel-300x115.jpg 300w\" data-sizes=\"(max-width: 600px) 100vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/230;\" \/><\/p>\n<p>EPEL (Extra Packages for Enterprise Linux) is a repository that provides additional packages for RHEL (Red Hat Enterprise Linux) and its derivatives, such as CentOS and Oracle Linux. These additional packages are not available in the default repositories, and they help extend the functionality of your Linux distribution by offering a wider range of software options. EPEL is a community-driven repository, maintained by the Fedora Project, and it aims to provide high-quality, tested packages that follow the same guidelines and principles as the Fedora Project itself.<\/p>\n<p>Installing EPEL allows you to access a wide range of software packages that can be essential for developers, system administrators, and users who require specific software not available in the base distribution.<\/p>\n<p>In this short guide, we will show you how to install the EPEL repository on RHEL, CentOS, and other compatible systems, making it easier for you to find and install the additional packages you need.<\/p>\n<h2>Step 1: Check Your Linux Distribution and Version<\/h2>\n<p>Before installing the EPEL repository, it&#8217;s important to check your Linux distribution and its version. The following command will display your system&#8217;s information:<\/p>\n<pre>\r\ncat \/etc\/*-release\r\n<\/pre>\n<p>Ensure that you are using a compatible RHEL-based distribution.<\/p>\n<h2>Step 2: Install the EPEL Repository<\/h2>\n<p>The method for installing the EPEL repository depends on your Linux distribution and version.<\/p>\n<h3>For RHEL 8 and CentOS 8:<\/h3>\n<p>Run the following command to install the EPEL repository:<\/p>\n<pre>\r\nsudo dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm\r\n<\/pre>\n<h3>For RHEL 7 and CentOS 7:<\/h3>\n<p>Run the following command to install the EPEL repository:<\/p>\n<pre>\r\nsudo yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\r\n<\/pre>\n<h3>For RHEL 6 and CentOS 6:<\/h3>\n<p>Run the following command to install the EPEL repository:<\/p>\n<pre>\r\nsudo yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-6.noarch.rpm\r\n<\/pre>\n<p>Once the EPEL repository is installed, the package manager (either yum or dnf) will automatically enable it.<\/p>\n<p>Example :<\/p>\n<pre>\r\nRetrieving https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-9.noarch.rpm\r\nPreparing...                          ################################# [100%]\r\nUpdating \/ installing...\r\n   1:epel-release-7-9                 ################################# [100%]\r\n<\/pre>\n<h2>Step 3: Verify the EPEL Repository Installation<\/h2>\n<p>After installing the EPEL repository, you can verify that it has been successfully enabled by listing your system&#8217;s repositories.<\/p>\n<p>For dnf users (RHEL 8 and CentOS 8), run:<\/p>\n<pre>\r\nsudo dnf repolist\r\n<\/pre>\n<p>For yum users (RHEL 6\/7 and CentOS 6\/7), run:<\/p>\n<pre>\r\nsudo yum repolist\r\n<\/pre>\n<p>The output should include the EPEL repository in the list. Something like this:<\/p>\n<pre># sudo yum repolist\r\n\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirrors.linode.com\r\n * epel: ftp.osuosl.org\r\n * extras: mirrors.linode.com\r\n * updates: mirrors.linode.com\r\nrepo id                                                       repo name                                                                                 status\r\nbase\/7\/x86_64                                                 CentOS-7 - Base                                                                            9,363\r\nepel\/x86_64                                                   Extra Packages for Enterprise Linux 7 - x86_64                                            11,046\r\nextras\/7\/x86_64                                               CentOS-7 - Extras                                                                            200\r\nnginx\/x86_64                                                  nginx repo                                                                                    41\r\nupdates\/7\/x86_64                                              CentOS-7 - Updates                                                                           438\r\nvarnish-4.1\/x86_64                                            Varnish Cache 4.1 for Enterprise Linux                                                        31\r\nrepolist: 21,119\r\n<\/pre>\n<h3>Commands and Their Functions:<\/h3>\n<ul>\n<li><span class=\"fw-bold\">cat \/etc\/*-release<\/span> &#8211; Displays the Linux distribution and version.<\/li>\n<li><span class=\"fw-bold\">sudo dnf install [URL]<\/span> &#8211; Installs the EPEL repository on RHEL 8 and CentOS 8 systems using dnf.<\/li>\n<li><span class=\"fw-bold\">sudo yum install [URL]<\/span> &#8211; Installs the EPEL repository on RHEL 6\/7 and CentOS 6\/7 systems using yum.<\/li>\n<li><span class=\"fw-bold\">sudo dnf repolist<\/span> &#8211; Lists the repositories enabled on the system for dnf users.<\/li>\n<li><span class=\"fw-bold\">sudo yum repolist<\/span> &#8211; Lists the repositories enabled on the system for yum users.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have shown you how to install the EPEL repository on RHEL, CentOS, and other compatible Linux distributions. By adding the EPEL repository, you can access a wide range of additional software packages, which can be beneficial for various tasks and requirements. The EPEL repository is maintained by the Fedora Project community and adheres to their guidelines and principles, ensuring that the packages you install are of high quality and compatible with your RHEL-based distribution.<\/p>\n<p>Now that you have installed the EPEL repository, you can start exploring the available packages and install those that are necessary for your specific use case. With the EPEL repository enabled, you have expanded your options for software packages, making your Linux distribution more versatile and powerful.<\/p>\n<p>Please feel free to leave comments and suggest improvements to this guide. Your feedback is valuable and helps us improve our content for our audience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EPEL (Extra Packages for Enterprise Linux) is a repository that provides additional packages for RHEL (Red Hat Enterprise Linux) and its derivatives, such as CentOS and Oracle Linux. These additional&#8230;<\/p>\n","protected":false},"author":6,"featured_media":6189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996,2058,2062],"tags":[1361,1370,1713],"class_list":["post-5950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-rhel","category-yum","tag-epel","tag-fedora","tag-rhel"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5950"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6189"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}