# cat /etc/yum.repos.d/centos.repo

[centos]name=centos6baseurl=http://mirror.centos.org/centos/$releasever/os/x86_64/gpgcheck=0enabled=1

# cat /etc/yum.repos.d/epel.repo

[epel]name=Extra Packages for Enterprise Linux 5 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearchmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=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/debugmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=1[epel-source]name=Extra Packages for Enterprise Linux 5 - $basearch - Source#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMSmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=1

# cat /etc/yum.repos.d/remi.repo

[remi]name=Les RPM de remi pour Enterprise Linux 5 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/5/remi/$basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/5/remi/mirrorenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi[remi-php55]name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 5 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/5/php55/$basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/5/php55/mirror# WARNING: If you enable this repository, you must also enable "remi"enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi[remi-test]name=Les RPM de remi en test pour Enterprise Linux 5 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/5/test/$basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/5/test/mirror# WARNING: If you enable this repository, you must also enable "remi"enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi[remi-debuginfo]name=Les RPM de remi pour Enterprise Linux 5 - $basearch - debuginfobaseurl=http://rpms.famillecollet.com/enterprise/5/debug-remi/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi[remi-php55-debuginfo]name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 5 - $basearch - debuginfobaseurl=http://rpms.famillecollet.com/enterprise/5/debug-php55/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi[remi-test-debuginfo]name=Les RPM de remi en test pour Enterprise Linux 5 - $basearch - debuginfobaseurl=http://rpms.famillecollet.com/enterprise/5/debug-test/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

cenos6.2  安装yum源

wget

wget

rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 

rpm -ivh epel-release-6-8.noarch.rpm