{"id":163227,"date":"2019-12-02T12:24:56","date_gmt":"2019-12-02T04:24:56","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=163227"},"modified":"2019-11-06T09:02:34","modified_gmt":"2019-11-06T01:02:34","slug":"centosrhel-epel","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centosrhel-epel.html","title":{"rendered":"CentOS 8 \u548c RHEL 8 \u670d\u52a1\u5668\u4e0a\u542f\u7528 EPEL \u4ed3\u5e93\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nEPEL \u4ee3\u8868 \u201cExtra Packages for Enterprise Linux\u201d\uff0c\u5b83\u662f\u4e00\u4e2a\u81ea\u7531\u5f00\u6e90\u7684\u9644\u52a0\u8f6f\u4ef6\u5305\u4ed3\u5e93\uff0c\u53ef\u7528\u4e8e CentOS \u548c RHEL \u670d\u52a1\u5668\u3002\u987e\u540d\u601d\u4e49\uff0cEPEL \u4ed3\u5e93\u63d0\u4f9b\u4e86\u989d\u5916\u7684\u8f6f\u4ef6\u5305\uff0c\u8fd9\u4e9b\u8f6f\u4ef6\u5728 CentOS 8 \u548c RHEL 8 \u7684\u9ed8\u8ba4\u8f6f\u4ef6\u5305\u4ed3\u5e93\u4e2d\u4e0d\u53ef\u7528\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u6f14\u793a\u5982\u4f55\u5728 CentOS 8 \u548c RHEL 8 \u670d\u52a1\u5668\u4e0a\u542f\u7528\u548c\u4f7f\u7528 EPEL \u5b58\u50a8\u5e93\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
EPEL \u4ed3\u5e93\u7684\u5148\u51b3\u6761\u4ef6<\/strong><\/div>\n

\u6700\u5c0f\u5316\u5b89\u88c5\u7684 CentOS 8 \u548c RHEL 8 \u670d\u52a1\u5668
\nroot \u6216 sudo \u7ba1\u7406\u5458\u6743\u9650
\n\u7f51\u7edc\u8fde\u63a5<\/p>\n

\u5728 RHEL 8.x \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5e76\u542f\u7528 EPEL \u4ed3\u5e93<\/strong><\/div>\n

\u767b\u5f55\u6216 SSH \u5230\u4f60\u7684 RHEL 8.x \u670d\u52a1\u5668\uff0c\u5e76\u6267\u884c\u4ee5\u4e0b dnf \u547d\u4ee4\u6765\u5b89\u88c5 EPEL rpm \u5305\uff0c<\/p>\n

[root@linuxtechi ~]# dnf install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-8.noarch.rpm -y<\/pre>\n

\u4e0a\u9762\u547d\u4ee4\u7684\u8f93\u51fa\u5c06\u5982\u4e0b\u6240\u793a\uff0c<\/p>\n

\"\"<\/p>\n

EPEL rpm \u5305\u6210\u529f\u5b89\u88c5\u540e\uff0c\u5b83\u5c06\u81ea\u52a8\u542f\u7528\u5e76\u914d\u7f6e\u5176 yum\/dnf \u4ed3\u5e93\u3002\u8fd0\u884c\u4ee5\u4e0b dnf \u6216 yum \u547d\u4ee4\uff0c\u4ee5\u9a8c\u8bc1\u662f\u5426\u542f\u7528\u4e86 EPEL \u4ed3\u5e93\uff0c<\/p>\n

[root@linuxtechi ~]# dnf repolist epel\r\n\u6216\u8005\r\n[root@linuxtechi ~]# dnf repolist epel -v<\/pre>\n

\"\"<\/p>\n

\u5728 CentOS 8.x \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5e76\u542f\u7528 EPEL \u4ed3\u5e93<\/strong><\/div>\n

\u767b\u5f55\u6216 SSH \u5230\u4f60\u7684 CentOS 8 \u670d\u52a1\u5668\uff0c\u5e76\u6267\u884c\u4ee5\u4e0b dnf \u6216 yum \u547d\u4ee4\u6765\u5b89\u88c5 epel-release rpm \u8f6f\u4ef6\u5305\u3002\u5728 CentOS 8 \u670d\u52a1\u5668\u4e2d\uff0cEPEL rpm \u5728\u5176\u9ed8\u8ba4\u8f6f\u4ef6\u5305\u4ed3\u5e93\u4e2d\u3002<\/p>\n

[root@linuxtechi ~]# dnf install epel-release -y\r\n\u6216\u8005\r\n[root@linuxtechi ~]# yum install epel-release -y<\/pre>\n

\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1 CentOS 8 \u670d\u52a1\u5668\u4e0a EPEL \u4ed3\u5e93\u7684\u72b6\u6001\uff0c<\/p>\n

[root@linuxtechi ~]# dnf repolist epel\r\nLast metadata expiration check: 0:00:03 ago on Sun 13 Oct 2019 04:18:05 AM BST.\r\nrepo id              repo name                                               status\r\n*epel                Extra Packages for Enterprise Linux 8 - x86_64          1,977\r\n[root@linuxtechi ~]#\r\n[root@linuxtechi ~]# dnf repolist epel -v\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\r\nRepo-id      : epel\r\nRepo-name    : Extra Packages for Enterprise Linux 8 - x86_64\r\nRepo-status  : enabled\r\nRepo-revision: 1570844166\r\nRepo-updated : Sat 12 Oct 2019 02:36:32 AM BST\r\nRepo-pkgs    : 1,977\r\nRepo-size    : 2.1 G\r\nRepo-metalink: https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-8&arch=x86_64&infra=stock&content=centos\r\n  Updated    : Sun 13 Oct 2019 04:28:24 AM BST\r\nRepo-baseurl : rsync:\/\/repos.del.extreme-ix.org\/epel\/8\/Everything\/x86_64\/ (34 more)\r\nRepo-expire  : 172,800 second(s) (last: Sun 13 Oct 2019 04:28:24 AM BST)\r\nRepo-filename: \/etc\/yum.repos.d\/epel.repo\r\nTotal packages: 1,977\r\n[root@linuxtechi ~]#<\/pre>\n

\u4ee5\u4e0a\u547d\u4ee4\u7684\u8f93\u51fa\u8bf4\u660e\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u542f\u7528\u4e86 EPEL \u4ed3\u5e93\u3002\u8ba9\u6211\u4eec\u5728 EPEL \u4ed3\u5e93\u4e0a\u6267\u884c\u4e00\u4e9b\u57fa\u672c\u64cd\u4f5c\u3002<\/p>\n

\u5217\u51fa EPEL \u4ed3\u5e93\u79cd\u6240\u6709\u53ef\u7528\u5305<\/strong><\/div>\n

\u5982\u679c\u8981\u5217\u51fa EPEL \u4ed3\u5e93\u4e2d\u7684\u6240\u6709\u7684\u8f6f\u4ef6\u5305\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b dnf \u547d\u4ee4\uff0c<\/p>\n

[root@linuxtechi ~]# dnf repository-packages epel list\r\n\u2026\u2026\u2026\u2026\u2026\r\nLast metadata expiration check: 0:38:18 ago on Sun 13 Oct 2019 04:28:24 AM BST.\r\nInstalled Packages\r\nepel-release.noarch                   8-6.el8                @epel\r\nAvailable Packages\r\nBackupPC.x86_64                       4.3.1-2.el8            epel\r\nBackupPC-XS.x86_64                    0.59-3.el8             epel\r\nCGSI-gSOAP.x86_64                     1.3.11-7.el8           epel\r\nCGSI-gSOAP-devel.x86_64               1.3.11-7.el8           epel\r\nField3D.x86_64                        1.7.2-16.el8           epel\r\nField3D-devel.x86_64                  1.7.2-16.el8           epel\r\nGraphicsMagick.x86_64                 1.3.33-1.el8           epel\r\nGraphicsMagick-c++.x86_64             1.3.33-1.el8           epel\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\r\nzabbix40-web-mysql.noarch             4.0.12-1.el8           epel\r\nzabbix40-web-pgsql.noarch             4.0.12-1.el8           epel\r\nzerofree.x86_64                       1.1.1-3.el8            epel\r\nzimg.x86_64                           2.8-4.el8              epel\r\nzimg-devel.x86_64                     2.8-4.el8              epel\r\nzstd.x86_64                           1.4.2-1.el8            epel\r\nzvbi.x86_64                           0.2.35-9.el8           epel\r\nzvbi-devel.x86_64                     0.2.35-9.el8           epel\r\nzvbi-fonts.noarch                     0.2.35-9.el8           epel\r\n[root@linuxtechi ~]#<\/pre>\n
\u4ece EPEL \u4ed3\u5e93\u4e2d\u641c\u7d22\u8f6f\u4ef6\u5305<\/strong><\/div>\n

\u5047\u8bbe\u6211\u4eec\u8981\u641c\u7d22 EPEL \u4ed3\u5e93\u4e2d\u7684 Zabbix \u5305\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b dnf \u547d\u4ee4\uff0c<\/p>\n

[root@linuxtechi ~]# dnf repository-packages epel list | grep -i zabbix<\/pre>\n

\u4e0a\u9762\u547d\u4ee4\u7684\u8f93\u51fa\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\uff0c<\/p>\n

\"\"<\/p>\n

\u4ece EPEL \u4ed3\u5e93\u5b89\u88c5\u8f6f\u4ef6\u5305<\/strong><\/div>\n

\u5047\u8bbe\u6211\u4eec\u8981\u4ece EPEL \u4ed3\u5e93\u5b89\u88c5 htop \u5305\uff0c\u8fd0\u884c\u4ee5\u4e0b dnf \u547d\u4ee4\uff0c<\/p>\n

\u8bed\u6cd5\uff1a<\/p>\n

# dnf \u2013enablerepo=\u201depel\u201d install < \u5305\u540d><\/pre>\n
[root@linuxtechi ~]# dnf --enablerepo=\"epel\" install htop -y<\/pre>\n

\u6ce8\u610f\uff1a\u5982\u679c\u6211\u4eec\u5728\u4e0a\u9762\u7684\u547d\u4ee4\u4e2d\u672a\u6307\u5b9a \u2013enablerepo=epel\uff0c\u90a3\u4e48\u5b83\u5c06\u5728\u6240\u6709\u53ef\u7528\u7684\u8f6f\u4ef6\u5305\u4ed3\u5e93\u4e2d\u67e5\u627e htop \u5305\u3002\u672c\u6587\u5c31\u662f\u8fd9\u4e9b\u5185\u5bb9\u4e86\uff0c\u6211\u5e0c\u671b\u4e0a\u9762\u7684\u6b65\u9aa4\u80fd\u5e2e\u52a9\u4f60\u5728 CentOS 8 \u548c RHEL 8 \u670d\u52a1\u5668\u4e0a\u542f\u7528\u5e76\u914d\u7f6e EPEL \u4ed3\u5e93\uff0c\u8bf7\u5728\u4e0b\u9762\u7684\u8bc4\u8bba\u680f\u5206\u4eab\u4f60\u7684\u8bc4\u8bba\u548c\u53cd\u9988\u3002<\/p>\n


\n

via: https:\/\/www.linuxtechi.com\/enable-epel-repo-centos8-rhel8-server\/<\/a><\/p>\n

\u4f5c\u8005\uff1aPradeep Kumar \u8bd1\u8005\uff1ageekpi \u6821\u5bf9\uff1awxy<\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7ffb\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u5c0f\u5316\u5b89\u88c5\u7684 CentOS 8 \u548c RHEL 8 \u670d\u52a1\u5668 root \u6216 sudo \u7ba1\u7406\u5458\u6743\u9650 \u7f51\u7edc\u8fde\u63a5 \u767b\u5f55\u6216 […]<\/p>\n","protected":false},"author":310,"featured_media":163234,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-163227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/163227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=163227"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/163227\/revisions"}],"predecessor-version":[{"id":163279,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/163227\/revisions\/163279"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/163234"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=163227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=163227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=163227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}