epel源安装(Centos6.10和Centos7.5)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_43551152/article/details/83549019

Centos6.10

rpm -e epel-release                 #首先卸载以前装的epel 以免影响
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo   #下载阿里提供的epel
yum clean all                                                                    #清理缓存
yum makecache                                                        #生成缓存
rm -rf /etc/yum.repos.d/*                              # 删除原来的epel源配置
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo # 修改为阿里云的源

Centos7.5

rpm -e epel-release               #首先卸载以前装的epel 以免影响
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo    #下载阿里提供的epel
yum clean all                        #清理缓存
yum makecache                              #生成缓存
rm -rf /etc/yum.repos.d/*              #删除原来的epel源配置
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo  修改为阿里云的源

猜你喜欢

转载自blog.csdn.net/weixin_43551152/article/details/83549019