1、什麼是EPEL?php
2、與163 YUM源比較bash
3、CentOS 5.X 安裝使用EPEL YUM源ide
4、CentOS 6.X 安裝使用EPEL YUM源工具
5、使用心得性能
6、yumdownloader 工具測試
7、卸載EPEL源spa
注:操做系統 CentOS 6.X ,CentOS 5.X操作系統
1、什麼是EPEL?code
EPEL,即Extra Packages for Enterprise Linux(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社區打造,爲 RHEL 及衍生髮行版如 CentOS、Scientific Linux 等提供高質量軟件包的項目。在這裏能夠得到 RHEL 的高質量、高性能、高可靠性、免費、方便易用的軟件包。ip
2、與163 YUM源比較
今天,在Dell R610上面安裝了Centos6.4 X86_64的操做系統,裝完系統後,用163的YUM源安裝軟件,我一直都是用163的YUM源,由於是國內的YUM源,比較快。可是,我發現這個源裏面,根本沒有libmcrypt,libmcrypt-devel這兩個RPM包,裝php擴展mcrypt時,又要用到這兩個包,因而我手動裝了這兩個libmcrypt包,發現163源中的包不全。後來又安裝了heartbeat,發現又沒有,因而我決定,得換個源,後來到網上搜了一下,發現了EPEL源,用了以後感受很爽。如今就總結一下,與你們分享!
CentOS 5.X 安裝使用EPEL YUM源
1. 查看操做系統版本
# lsb_release -a
Description: CentOS release 5.5 (Final)
2.下載相應的EPEL源
32位系統:
# wget http:
//mirrors.yun-idc.com/epel/5/i386/epel-release-5-4.noarch.rpm
64位系統:
# wget http:
//mirrors.hust.edu.cn/epel//5/x86_64/epel-release-5-4.noarch.rpm
3.安裝EPEL源(注:安裝對應版本的rpm包)
# rpm -ivh epel-release-x-x.noarch.rpm
4.導入key文件
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
5.查看安裝的EPEL源
# cd /etc/yum.repos.d/
# ll
-rw-r--r-- 1 root root 2245 2010-04-26 CentOS-Base.repo
-rw-r--r-- 1 root root 626 2010-04-26 CentOS-Media.repo
-rw-r--r-- 1 root root 954 2010-08-12 epel.repo
#正式版,全部的軟件都是穩定能夠信賴的
-rw-r--r-- 1 root root 1054 2010-08-12 epel-testing.repo
#最新的測試源
注:可是默認狀況下,只有正式版是有效狀態的,若是你想試試測試版的話,須要修改/etc/yum.repos.d/epel-testing.repo,把enabled=0改爲enabled=1便可。
6.測試
# yum clean all
# yum list
CentOS 6.X 安裝使用EPEL YUM源
1. 查看操做系統版本
# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m
2.下載相應的EPEL源
(1).32位系統
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
(2).64位系統
# wget http:
//mirrors.hust.edu.cn/epel//6/x86_64/epel-release-6-8.noarch.rpm
3.安裝EPEL源(注:我這裏是64位系統)
# rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA
/SHA256
Signature, key ID 0608b895: NOKEY
Preparing...
########################################### [100%]
1:epel-release
########################################### [100%]
4.導入key文件
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
5.查看安裝的EPEL源
# cd /etc/yum.repos.d/
# ll
-rw-r--r--. 1 root root 1926 2月 25 16:57 CentOS-Base.repo
-rw-r--r--. 1 root root 638 2月 25 16:57 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 623 7月 25 16:57 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 2月 25 16:57 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 11月 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 11月 5 2012 epel-testing.repo
6.測試
# yum clean all
# yum list