centos的常用4个安装软件源
epel http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpmforge http://pkgs.repoforge.org/rpmforge-release/ (文件pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm) 这是remi(这个一般不太用,安装新版本软件时用这个) http://rpms.famillecollet.com (文件 http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ) 这是163的 也就是标准的官方源 http://mirrors.163.com/ (文件http://mirrors.163.com/.help/CentOS6-Base-163.repo) curl -o remi-release-6.rpm http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (下载文件,也可以wget下载) rpm -ivh remi-release-6.rpm 安装rpm文件 cd /etc/yum.repos.d/