歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> centos6.8安裝啟用EPEL

centos6.8安裝啟用EPEL

日期:2017/3/3 17:46:19   编辑:學習Linux

centos6.8安裝啟用EPEL

centos6.8安裝啟用EPEL


EPEL(企業版 Linux 附加軟件包)是一個由特別興趣小組創建、維護並管理,針對紅帽企業版Linux(RHEL)及其衍生發行版(比如 CentOS、Scientific Linux、Oracle Enterprise Linux)提供高質量附加軟件包。EPEL 的軟件包通常不會與企業版 Linux 官方源中的軟件包發生沖突,或者互相替換文件。
epel_rpm包下載

安裝方法
1.yum 安裝

$ yum install epel-release -y

CentOS 用戶可以直接通過 yum安裝並啟用 EPEL 源。CentOS Extras 默認包含該包。CentOS-6.8通過yum安裝的是最新版本。

2.rpm包安裝(/usr/local/src目錄下)

$ wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm$ rpm -ivh epel-release-latest-6.noarch.rpm

安裝完成,可通過yum repolist查看epel源是否存在。 若出現錯誤如下圖,則導入RPM-GPG-KEY-EPEL-6。 epel_error_NOKEY

$ wget http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6$ mv RPM-GPG-KEY-EPEL-6 /etc/pki/rpm-gpg/$ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

如有錯誤,還望指出,多謝!

http://xxxxxx/Linuxjc/1184749.html TechArticle

Copyright © Linux教程網 All Rights Reserved