{"id":3835,"date":"2012-09-28T14:23:55","date_gmt":"2012-09-28T06:23:55","guid":{"rendered":"http:\/\/jpuyy.com\/?p=3835"},"modified":"2018-03-30T16:29:28","modified_gmt":"2018-03-30T08:29:28","slug":"centos6-2-epel","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=3835","title":{"rendered":"CentOS6.2\u5b89\u88c5epel\u5305"},"content":{"rendered":"<p>\u5b98\u65b9\u4ecb\u7ecd\uff1a<\/p>\n<p><a href=\"https:\/\/fedoraproject.org\/wiki\/EPEL\/zh-cn\">https:\/\/fedoraproject.org\/wiki\/EPEL\/zh-cn<\/a><\/p>\n<p>\u5728\u88c5\u4e86epel\u4e4b\u540e\uff0c\u8981\u5b89\u88c5nginx,php,mysql\uff0c\u76f4\u63a5yum install\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<blockquote><p>EPEL \u5305\u542b\u4e00\u4e2a\u53eb\u505a&#8217;epel-release&#8217;\u7684\u5305\uff0c\u8fd9\u4e2a\u5305\u5305\u542b\u4e86 EPEL \u6e90\u7684 gpg \u5bc6\u94a5\u548c\u8f6f\u4ef6\u6e90\u4fe1\u606f\u3002<\/p><\/blockquote>\n<p>\u73b0\u5728\u5b89\u88c5<code>epel-release<\/code><\/p>\n<pre>rpm -ivh\u00a0http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/pre>\n<p>\u91cd\u88c5<\/p>\n<pre>rpm -iv --replacepkgs http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/pre>\n<p>\u4e0a\u9762\u7684\u5730\u5740\u7ecf\u5e38\u53d8\uff0c\u53ef\u4ee5\u6253\u5f00\u4e0b\u9762\u7f51\u5740\u627e\u5230epel\u5305<\/p>\n<pre>http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/<\/pre>\n<p>\u5bfc\u5165RPM-GPG-KEY-EPEL\u7684key<\/p>\n<pre>rpm --import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6<\/pre>\n<p>epel\u5b89\u88c5\u5b8c\u4e4b\u540e\u5728\/etc\/yum.repos.d\/\u4e0b\u751f\u6210\u4e86\u4e24\u4e2a\u6587\u4ef6\uff0cepel.repo\uff0cepel-testing.repo<\/p>\n<p>\u4fee\u6539epel.repo\u6587\u4ef6\uff08epel-testing\u5305\u542b\u6700\u65b0\u7684\u6d4b\u8bd5\u8f6f\u4ef6\u5305\uff0c\u5176\u7248\u672c\u5f88\u65b0\u4f46\u662f\u5b89\u88c5\u6709\u98ce\u9669\uff09<\/p>\n<p>\u5728[epel-debuginfo]\u524d\u6dfb\u52a0<\/p>\n<pre>priority=11<\/pre>\n<p>\u8fd9\u6837yum\u65f6\u4f1a\u5148\u53bb\u5b98\u65b9\u6e90\u67e5\u627e\uff0c\u5b98\u65b9\u6e90\u6ca1\u6709\u518d\u53bbepel\u5b89\u88c5<\/p>\n<p>PS:\u8fd8\u6709\u4e00\u6b3e\u4e0d\u9519\u7684\u6e90\uff0c\u53eb<code>atomic<\/code>\uff0c\u5305\u542b\u6709php-fpm\uff0c\u5b89\u88c5\u8fd9\u4e2a\u6e90\u5219\u66f4\u4e3a\u65b9\u4fbf\uff0c\u6b64\u811a\u672c\u4f1a\u81ea\u52a8\u5b89\u88c5\u5bf9\u5e94\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u66f4\u7701\u5fc3\u3002<\/p>\n<pre>wget -q -O - http:\/\/www.atomicorp.com\/installers\/atomic | sh<\/pre>\n<p>\u540c\u6837<code>rpmforge<\/code>\u4e5f\u5f88\u4e0d\u9519\uff0c\u5728\u8fd9\u91cc\u67e5\u770b\u5bf9\u5e94\u7248\u672c\u7684\u5b89\u88c5\u65b9\u6cd5<\/p>\n<p><a title=\"RPMForge\" href=\"http:\/\/wiki.centos.org\/zh\/AdditionalResources\/Repositories\/RPMForge\" target=\"_blank\">http:\/\/wiki.centos.org\/zh\/AdditionalResources\/Repositories\/RPMForge<\/a><\/p>\n<p>epel centos6 \u6e90<\/p>\n<pre>\r\n[epel]\r\nname=Extra Packages for Enterprise Linux 6 - $basearch\r\nbaseurl=http:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/6\/$basearch\r\nfailovermethod=priority\r\nenabled=1\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\nbaseurl=http:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/6\/$basearch\/debug\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\nbaseurl=http:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/6\/SRPMS\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","protected":false},"excerpt":{"rendered":"<p>\u5b98\u65b9\u4ecb\u7ecd\uff1a https:\/\/fedoraproject.org\/wiki\/EPEL\/zh-cn \u5728\u88c5\u4e86epel\u4e4b\u540e\uff0c\u8981\u5b89\u88c5nginx,php,mysql\uff0c\u76f4\u63a5yum install\u5c31\u53ef\u4ee5\u4e86\u3002 EPEL \u5305\u542b\u4e00\u4e2a\u53eb\u505a&#8217;epel-release&#8217;\u7684\u5305\uff0c\u8fd9\u4e2a\u5305\u5305\u542b\u4e86 EPEL \u6e90\u7684 gpg \u5bc6\u94a5\u548c\u8f6f\u4ef6\u6e90\u4fe1\u606f\u3002 \u73b0\u5728\u5b89\u88c5epel-release rpm -ivh\u00a0http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm \u91cd\u88c5 rpm -iv &#8211;replacepkgs http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm \u4e0a\u9762\u7684\u5730\u5740\u7ecf\u5e38\u53d8\uff0c\u53ef\u4ee5\u6253\u5f00\u4e0b\u9762\u7f51\u5740\u627e\u5230epel\u5305 http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/ \u5bfc\u5165RPM-GPG-KEY-EPEL\u7684key rpm &#8211;import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6 epel\u5b89\u88c5\u5b8c\u4e4b\u540e\u5728\/etc\/yum.repos.d\/\u4e0b\u751f\u6210\u4e86\u4e24\u4e2a\u6587\u4ef6\uff0cepel.repo\uff0cepel-testing.repo \u4fee\u6539epel.repo\u6587\u4ef6\uff08epel-testing\u5305\u542b\u6700\u65b0\u7684\u6d4b\u8bd5\u8f6f\u4ef6\u5305\uff0c\u5176\u7248\u672c\u5f88\u65b0\u4f46\u662f\u5b89\u88c5\u6709\u98ce\u9669\uff09 \u5728[epel-debuginfo]\u524d\u6dfb\u52a0 priority=11 \u8fd9\u6837yum\u65f6\u4f1a\u5148\u53bb\u5b98\u65b9\u6e90\u67e5\u627e\uff0c\u5b98\u65b9\u6e90\u6ca1\u6709\u518d\u53bbepel\u5b89\u88c5 PS:\u8fd8\u6709\u4e00\u6b3e\u4e0d\u9519\u7684\u6e90\uff0c\u53ebatomic\uff0c\u5305\u542b\u6709php-fpm\uff0c\u5b89\u88c5\u8fd9\u4e2a\u6e90\u5219\u66f4\u4e3a\u65b9\u4fbf\uff0c\u6b64\u811a\u672c\u4f1a\u81ea\u52a8\u5b89\u88c5\u5bf9\u5e94\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u66f4\u7701\u5fc3\u3002 wget -q -O &#8211; http:\/\/www.atomicorp.com\/installers\/atomic | sh \u540c\u6837rpmforge\u4e5f\u5f88\u4e0d\u9519\uff0c\u5728\u8fd9\u91cc\u67e5\u770b\u5bf9\u5e94\u7248\u672c\u7684\u5b89\u88c5\u65b9\u6cd5 http:\/\/wiki.centos.org\/zh\/AdditionalResources\/Repositories\/RPMForge epel centos6 \u6e90 [epel] name=Extra Packages for Enterprise Linux 6 &#8211; $basearch baseurl=http:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/6\/$basearch failovermethod=priority enabled=1 gpgcheck=1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23],"class_list":["post-3835","post","type-post","status-publish","format-standard","hentry","category-linux","tag-summary"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3835"}],"version-history":[{"count":13,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3835\/revisions"}],"predecessor-version":[{"id":8361,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/3835\/revisions\/8361"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}