服务器系列之添加软件源

此处介绍如何添加EPEL(Extra Packages for Enterprise Linux), RPMforge和RPM Fusion软件源。

  • 添加EPEL软件源

1
2
3
4
5
6
#Enable EPEL Repo
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
 
#Disable EPEL Repo
vim /etc/yum.repos.d/epel.repo
enabled=0

参考资料How to enable EPEL repo on CentOS 5&6

  • 添加RPMforge软件源

1
2
3
4
5
6
7
8
#Step1: Download the rpmforge-release package
wget -c http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
 
#Step2: Install DAG's GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
#Step3: Install the package
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm

参考资料Installing RPMforge

  • 添加RPM Fusion软件源

1
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm

参考资料Installing Free and Nonfree Repositories