歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> 配置 EPEL yum 源,配置epelyum

配置 EPEL yum 源,配置epelyum

日期:2017/3/3 18:06:51   编辑:學習Linux

配置 EPEL yum 源,配置epelyum

配置 EPEL yum 源,配置epelyum


當我們在linux上, 使用yum 安裝包時,報錯如下:

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Nothing to do

這時我們需要安裝EPEL

EPEL,即Extra Packages for Enterprise Linux,這個軟件倉庫裡有很多非常常用的軟件,而且是專門針對RHEL設計的,對RHEL標准yum源是一個很好的補充,完全免費使用,由Fedora項目維護,所以如果你使用的是RHEL

從官網下載 EPEL, 安裝

下載:(RHEL/CentOS 5 32-64 Bit)

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

安裝:

rpm -ivh epel-release-5-4.noarch.rpm

配置:

在 /etc/yum.repos.d/下 創建epel.repo

[epel-source]域下的enabled=0也改成enabled=1

enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

卸載 EPEL:

[root@test ~]# rpm -e epel-release

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

Copyright © Linux教程網 All Rights Reserved