备份当前的yum源: mv /etc/yum.repos.d /etc/yum.repos.d.backup4comex 新建空的yum源设置目录: mkdir /etc/yum.repos.d 下载阿里云的yum源配置: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
查询当前已有yum源:
yum list
安装扩展源EPEL。
EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质 量软件包的项目。
安装epel扩展源:
yum -y install epel-release