1.备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
3.
yum makecache
GDB的安装
yum list //显示服务器所有可以安装的软件
yum list | grep gdb //显示和gdb有关的
yum list | grep mysql