centos换源
http://mirrors.163.com/.help/centos.html
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Yum clean all
Yum makecache
Centos 安装dev环境
yum groupinstall "Development Libraries"
yum groupinstall "Development Tools"
yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel libX11-devel kernel-headers kernel-devel
源文档 <http://blog.csdn.net/gujing001/article/details/6748291>
centos 安装epel源
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
安装ansible
yum install ansible