一、參照我的上一篇配置163源http://zongpeng.blog.51cto.com/2610685/1108033配置完成後接下來操作。
二、配置epel源
EPEL全稱: Extra Packages for Enterprise Linux.傳說中最全的yum源
【CentOS/Rhel 6.x 32-bit】
rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-7.noarch.rpm
【CentOS/Rhel 6.x 64-bit】
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
【CentOS/Rhel 5.x 32-bit】
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
【CentOS/Rhel 5.x 64-bit】
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
想暫停使用EPEL,在下面的文件中設置enabled=0即可.
vim /etc/yum.repos.d/epel.repo
三、配置dag源及其測試:
以下命令適用於rhel5系列操作系統:
- rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
6系列要更改標紅部分,並在瀏覽器打開http://apt.sw.be/redhat,然後依次點擊
並使用瀏覽器的搜索功能找到