{"id":5808,"date":"2012-09-04T11:59:05","date_gmt":"2012-09-04T16:59:05","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=5808"},"modified":"2016-11-18T23:04:29","modified_gmt":"2016-11-19T04:04:29","slug":"centos6-2-install-epel-repository","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=5808","title":{"rendered":"CentOS6.2: Install EPEL Repository"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Overview\">Overview<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Install_using_yum\">Install using yum<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Manual_Install\">Manual Install<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Select_a_Mirror_Site\">Select a Mirror Site<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Import_GPG_Key\">Import GPG Key<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Download_EPEL_Repository\">Download EPEL Repository<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Setup_EPEL_Repository\">Setup EPEL Repository<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Verify_EPEL_Repository\">Verify EPEL Repository<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Debug\">Debug<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Overview\"><h2>Overview<\/h2><\/span>\n<p>* EPEL stands for <em>Extra Packages for Enterprise Linux<\/em><\/p>\n<span id=\"Install_using_yum\"><h2>Install using yum<\/h2><\/span>\n<pre lang=\"bash\">\r\nyum install epel-release\r\n<\/pre>\n<span id=\"Manual_Install\"><h2>Manual Install<\/h2><\/span>\n<span id=\"Select_a_Mirror_Site\"><h3>Select a Mirror Site<\/h3><\/span>\n<p>* Go to EPEL public mirrors site at <a href=\"http:\/\/mirrors.fedoraproject.org\/publiclist\/EPEL\/\">Fedora EPEL Public Active Mirrors<\/a><br \/>\n* Click the appropriate architecture from the Mirror list filter, e.g. <em>EPEL\/6\/x86_64<\/em><\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64-300x105.jpg\" alt=\"\" title=\"EPEL_repos_mirror_6_x86_64\" width=\"300\" height=\"105\" class=\"aligncenter size-medium wp-image-5811\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64-300x105.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64.jpg 352w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Select a mirror site, e.g. <em>U. of Maryland<\/em>, and click <em>http<\/em> link<\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd1-300x18.jpg\" alt=\"\" title=\"EPEL_repos_mirror_6_x86_64_umd1\" width=\"300\" height=\"18\" class=\"aligncenter size-medium wp-image-5812\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd1-300x18.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd1.jpg 774w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Import_GPG_Key\"><h3>Import GPG Key<\/h3><\/span>\n<p>* Locate appropriate GPG key, e.g. <em>RPM-GPG-KEY-EPEL-6<\/em>:<\/p>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_gpgkey.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_gpgkey-278x300.jpg\" alt=\"\" title=\"EPEL_repos_mirror_6_x86_64_umd_gpgkey\" width=\"278\" height=\"300\" class=\"aligncenter size-medium wp-image-5813\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_gpgkey-278x300.jpg 278w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_gpgkey.jpg 307w\" sizes=\"auto, (max-width: 278px) 100vw, 278px\" \/><\/a><\/h6><\/span>\n<p>* Download key:<\/p>\n<pre lang=\"bash\">\r\nwget http:\/\/mirror.umd.edu\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\n<\/pre>\n<pre lang=\"bash\">\r\n[root@localhost ~]# wget http:\/\/mirror.umd.edu\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\n--2012-09-04 09:36:22--  http:\/\/mirror.umd.edu\/fedora\/epel\/RPM-GPG-KEY-EPEL-6\r\nResolving mirror.umd.edu... 129.2.73.2\r\nConnecting to mirror.umd.edu|129.2.73.2|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 1649 (1.6K) [application\/octet-stream]\r\nSaving to: \u201cRPM-GPG-KEY-EPEL-6\u201d\r\n\r\n100%[======================================>] 1,649       --.-K\/s   in 0s      \r\n\r\n2012-09-04 09:36:22 (88.7 MB\/s) - \u201cRPM-GPG-KEY-EPEL-6\u201d saved [1649\/1649]\r\n<\/pre>\n<p>* Import key:<\/p>\n<pre lang=\"bash\">\r\nrpm --import RPM-GPG-KEY-EPEL-6\r\n<\/pre>\n<span id=\"Download_EPEL_Repository\"><h3>Download EPEL Repository<\/h3><\/span>\n<p>* Download appropriate EPEL repository RPM file, e.g. <em>epel-release-6-7.noarch.rpm<\/em><\/p>\n<span id=\"_3\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_reporpm.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_reporpm-300x98.jpg\" alt=\"\" title=\"EPEL_repos_mirror_6_x86_64_umd_reporpm\" width=\"300\" height=\"98\" class=\"aligncenter size-medium wp-image-5815\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_reporpm-300x98.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/EPEL_repos_mirror_6_x86_64_umd_reporpm.jpg 329w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<pre lang=\"bash\">\r\nwget http:\/\/mirror.umd.edu\/fedora\/epel\/6\/i386\/epel-release-6-7.noarch.rpm\r\n<\/pre>\n<pre lang=\"bash\">\r\n[root@localhost ~]# wget http:\/\/mirror.umd.edu\/fedora\/epel\/6\/i386\/epel-release-6-7.noarch.rpm\r\n--2012-09-04 09:44:16--  http:\/\/mirror.umd.edu\/fedora\/epel\/6\/i386\/epel-release-6-7.noarch.rpm\r\nResolving mirror.umd.edu... 129.2.73.2\r\nConnecting to mirror.umd.edu|129.2.73.2|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 14496 (14K) [application\/x-redhat-package-manager]\r\nSaving to: \u201cepel-release-6-7.noarch.rpm\u201d\r\n\r\n100%[======================================>] 14,496      --.-K\/s   in 0.1s    \r\n\r\n2012-09-04 09:44:17 (105 KB\/s) - \u201cepel-release-6-7.noarch.rpm\u201d saved [14496\/14496]\r\n<\/pre>\n<p>* Install downloaded RPM, e.g.<\/p>\n<pre lang=\"bash\">\r\nrpm -ivh epel-release-6-7.noarch.rpm\r\n<\/pre>\n<pre lang=\"bash\">\r\n[root@localhost ~]# rpm -ivh epel-release-6-7.noarch.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:epel-release           ########################################### [100%]\r\n<\/pre>\n<span id=\"Setup_EPEL_Repository\"><h3>Setup EPEL Repository<\/h3><\/span>\n<p>* Set EPEL repo priority to <strong>3<\/strong>, i.e. <strong>priority=3<\/strong><\/p>\n<pre lang=\"bash\">\r\nvi \/etc\/yum.repos.d\/epel.repo\r\n<\/pre>\n<pre lang=\"bash\">\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&arch=$basearch\r\nfailovermethod=priority\r\nenabled=1\r\n########\r\npriority=3\r\n########\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\r\n<\/pre>\n<span id=\"Verify_EPEL_Repository\"><h2>Verify EPEL Repository<\/h2><\/span>\n<p>* Command: <em> yum repolist<\/em><\/p>\n<pre lang=\"bash\">\r\n[root@localhost ~]# yum repolist\r\nLoaded plugins: fastestmirror, refresh-packagekit, security\r\nLoading mirror speeds from cached hostfile\r\nepel\/metalink                                            |  13 kB     00:00     \r\n * base: centos.mirror.netriplex.com\r\n * epel: mirror.us.leaseweb.net\r\n * extras: centos.mbni.med.umich.edu\r\n * updates: mirrors.lga7.us.voxel.net\r\nepel                                                     | 4.3 kB     00:00     \r\nepel\/primary_db                                          | 4.7 MB     00:08     \r\nrepo id          repo name                                                status\r\nbase             CentOS-6 - Base                                          6,346\r\nepel             Extra Packages for Enterprise Linux 6 - x86_64           7,746\r\nextras           CentOS-6 - Extras                                            4\r\nupdates          CentOS-6 - Updates                                         517\r\nrepolist: 14,613\r\n<\/pre>\n<span id=\"Debug\"><h3>Debug<\/h3><\/span>\n<pre lang=\"bash\">\r\nURLGRABBER_DEBUG=1 yum repolist\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/www.ehowstuff.com\/how-to-install-and-configure-epel-repository-on-centos-6-2\/\">How to Install and Configure EPEL Repository on CentOS 6.2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview * EPEL stands for Extra Packages for Enterprise Linux Install using yum yum install epel-release Manual Install Select a Mirror Site * Go to EPEL public mirrors site at Fedora EPEL Public Active Mirrors * Click the appropriate architecture &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=5808\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[125],"tags":[603,221,222,223,615],"class_list":["post-5808","post","type-post","status-publish","format-standard","hentry","category-centos","tag-centos","tag-centos6-2","tag-epel","tag-repo","tag-yum"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1vG","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5808"}],"version-history":[{"count":12,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5808\/revisions"}],"predecessor-version":[{"id":11784,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5808\/revisions\/11784"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}