{"id":2135,"date":"2012-05-11T22:31:08","date_gmt":"2012-05-11T14:31:08","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2135"},"modified":"2023-06-26T20:34:32","modified_gmt":"2023-06-26T20:34:32","slug":"how-to-install-and-configure-epel-repository-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-epel-repository-on-centos-6-2\/","title":{"rendered":"How to Install and Configure EPEL Repository on CentOS 6.2"},"content":{"rendered":"<p>The EPEL repository is an additional repository that creates, maintains, and manages a high-quality set of extra packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL) and CentOS server. It is a crucial component for system administrators in managing their servers as it provides a set of additional packages that are not included in the default CentOS and RHEL repositories. By installing the EPEL repository, you can enhance the functionality of your CentOS server with a variety of software packages available through this repository.<\/p>\n<p>In this guide, we will walk you through the process of installing and configuring the Extra Packages for Enterprise Linux (EPEL) repository on CentOS 6.2. This guide is designed to be easy to follow, with step-by-step instructions to ensure a smooth installation process. We will cover everything from importing the GPG keys for EPEL software packages to setting the priority for the EPEL repository.<\/p>\n<p>Before we begin, it&#8217;s important to note that this guide is intended for users who have a basic understanding of CentOS and command line interface. If you&#8217;re new to CentOS, you might want to check out our articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server<\/a> and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server<\/a> hosting to get a better understanding of how servers work.<\/p>\n<h2>Step 1: Importing the GPG keys for EPEL software packages<\/h2>\n<p>The first step in installing the EPEL repository is to import the GPG keys for the EPEL software packages. This can be done using the wget command to download the keys from the official Fedora project website.<\/p>\n<pre>\r\n[root@centos62 ~]# wget http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\n<\/pre>\n<p>Example:<\/p>\n<pre>[root@centos62 ~]# wget http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\n--2012-03-07 22:08:39--  http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\nResolving ftp.riken.jp... 134.160.38.1\r\nConnecting to ftp.riken.jp|134.160.38.1|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 1649 (1.6K) [text\/plain]\r\nSaving to: \u00e2RPM-GPG-KEY-EPEL-6\u00e2\r\n\r\n100%[==========================================================&gt;] 1,649       --.-K\/s   in 0.002s\r\n\r\n2012-03-07 22:08:40 (929 KB\/s) - \u00e2RPM-GPG-KEY-EPEL-6\u00e2<\/pre>\n<h2>Step 2: Enabling the EPEL repositories<\/h2>\n<p>After importing the GPG keys, the next step is to enable the EPEL repositories. This can be done using the rpm command with the &#8211;import option.<\/p>\n<pre>\r\n[root@centos62 ~]# rpm --import RPM-GPG-KEY-EPEL-6\r\n<\/pre>\n<h2>Step 3: Downloading the EPEL repository for 32-bit CentOS<\/h2>\n<p>Next, we need to download the EPEL repository for 32-bit CentOS. This can be done using the wget command to download the repository from the official Fedora project website.<\/p>\n<pre>\r\n[root@centos62 ~]# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-5.noarch.rpm\r\n<\/pre>\n<p>Example:<\/p>\n<pre>\r\n[root@centos62 ~]# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-5.noarch.rpm\r\n--2012-03-07 22:06:10--  http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-5.noarch.rpm\r\nResolving dl.fedoraproject.org... 209.132.181.27, 209.132.181.23, 209.132.181.24, ...\r\nConnecting to dl.fedoraproject.org|209.132.181.27|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 14064 (14K) [application\/x-rpm]\r\nSaving to: \u00e2epel-release-6-5.noarch.rpm\u00e2\r\n\r\n100%[==========================================================&gt;] 14,064      36.7K\/s   in 0.4s\r\n\r\n2012-03-07 22:06:14 (36.7 KB\/s) - epel-release-6-5.noarch.rpm\u00e2\r\n<\/pre>\n<h2>Step 4: Installing the EPEL repository on 32-bit CentOS<\/h2>\n<p>After downloading the EPEL repository, the next step is to install it. This can be done using the rpm command with the -ivh option.<\/p>\n<pre>\r\n[root@centos62 ~]# rpm -ivh epel-release-6-5.noarch.rpm\r\n<\/pre>\n<p>Example:<\/p>\n<pre>\r\n[root@centos62 ~]# rpm -ivh epel-release-6-5.noarch.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:epel-release           ########################################### [100%]\r\n<\/pre>\n<h2>Step 5: Editing the EPEL repository file and setting the priority<\/h2>\n<p>The final step in the installation process is to edit the EPEL repository file and set the priority for the EPEL repository. This can be done using the vi editor to open the repository file.<\/p>\n<pre>\r\n[root@centos62 ~]# vi \/etc\/yum.repos.d\/epel.repo\r\n<\/pre>\n<p>In the [epel] section, under enabled=1, add priority=3:<\/p>\n<pre>\r\n[epel]\r\nname=Extra Packages for Enterprise Linux 6 - $basearch\r\n#baseurl=http:\/\/download.fedoraproject.org\/pub\/epel\/6\/$basearch\r\nmirrorlist=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-6&amp;arch=$basearch\r\nfailovermethod=priority\r\nenabled=1\r\npriority=3\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\r\n\r\n[epel-debuginfo]\r\nname=Extra Packages for Enterprise Linux 6 - $basearch - Debug\r\n#baseurl=http:\/\/download.fedoraproject.org\/pub\/epel\/6\/$basearch\/debug\r\nmirrorlist=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-debug-6&amp;arch=$basearch\r\nfailovermethod=priority\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\r\ngpgcheck=1\r\n\r\n[epel-source]\r\nname=Extra Packages for Enterprise Linux 6 - $basearch - Source\r\n#baseurl=http:\/\/download.fedoraproject.org\/pub\/epel\/6\/SRPMS\r\nmirrorlist=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-source-6&amp;arch=$basearch\r\nfailovermethod=priority\r\nenabled=0\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\r\ngpgcheck=1\r\n<\/pre>\n<h2>Understanding the EPEL Repository<\/h2>\n<p>Now that we have installed and configured the EPEL repository, it&#8217;s important to understand what it offers. The EPEL repository provides a set of additional packages that are not included in the default CentOS and RHEL repositories. These packages are maintained and managed by the Fedora Project community and are available for installation on CentOS and RHEL servers.<\/p>\n<p>To see what packages and versions are available in EPEL, you can check any of the available EPEL mirrors from the <a href=\"https:\/\/admin.fedoraproject.org\/mirrormanager\/\" rel=\"noopener\" target=\"_blank\">mirror list<\/a>. <\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">wget<\/span> \u2013 used to download files from the internet<\/li>\n<li><span class=\"fw-bold\">rpm &#8211;import<\/span> \u2013 used to import a public key to the system<\/li>\n<li><span class=\"fw-bold\">rpm -ivh<\/span> \u2013 used to install a .rpm package<\/li>\n<li><span class=\"fw-bold\">vi<\/span> \u2013 a text editor used to modify configuration files<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have walked you through the process of installing and configuring the EPEL repository on CentOS 6.2. We have covered everything from importing the GPG keys to setting the priority for the EPEL repository. We hope this guide has been helpful in enhancing your CentOS server with the variety of software packages available through the EPEL repository.<\/p>\n<p>Remember, the EPEL repository is an important tool for system administrators. It provides a set of additional packages that are not included in the default CentOS and RHEL repositories. By installing the EPEL repository, you can enhance the functionality of your CentOS server and make it more versatile for your needs.<\/p>\n<p>If you have any questions or run into any issues, feel free to refer back to this guide or check out our other articles on <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a> for more information.<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the EPEL repository?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The EPEL (Extra Packages for Enterprise Linux) repository is an open-source and free community-based repository project from the Fedora team which provides high-quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why do we need to import GPG keys for EPEL?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">GPG keys are used to verify the authenticity and integrity of packages. By importing the GPG keys for EPEL, you are ensuring that the packages you install from EPEL are not tampered with and are indeed from the EPEL repository.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What does the rpm &#8211;import command do?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The rpm &#8211;import command is used to import apublic key to the system. This public key will be used by the system to verify the authenticity and integrity of packages that are being installed.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the purpose of setting priority in the EPEL repository file?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Setting a priority for the EPEL repository in the repository file determines the order in which repositories are checked for packages. A lower priority number means the repository will be checked first. This can be useful in situations where a package is available in multiple repositories.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How can I check what packages are available in the EPEL repository?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">You can check the available packages in the EPEL repository by visiting any of the EPEL mirrors from the mirror list. Alternatively, you can browse the package set using repoview.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The EPEL repository is an additional repository that creates, maintains, and manages a high-quality set of extra packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,2062],"tags":[1244,1253,1361,1536,1944],"class_list":["post-2135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-yum","tag-centos","tag-centos-6-2","tag-epel","tag-linux","tag-yum-repositories"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2135","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=2135"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2135\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1554"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}