cd /etc/yum.repos.d/
ls
mkdir repo_bak
mv *.repo repo_bak/
到网易和阿里开源镜像站点下载系统对应版本的repo文件(前提得有wget命令,yum install -y wget)
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
ls
yum clean all #清除yum缓存
yum makecache #生成新的yum缓存
yum list|grep epel-release
yum install -y epel-release #安装epel源
ls
#下载阿里开源镜像的epel源文件
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache#
yum list |grep pptpd #验证一下有没有这个包
配置epel源
原创keepsmiling1996 ©著作权
©著作权归作者所有:来自51CTO博客作者keepsmiling1996的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:DRBD模块加载失败
下一篇:文件属性介绍
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Centos7.9 清华yum源配置
清华YUM源配置
CentOS centos -
Anaconda国内清华镜像源配置一步到位
anaconda环境配置一步到位
pip anaconda -
如何配置epel源
epel
配置 源 epel -
centos 的epel源配置
centos 的epel源配置
centos epel 源配置 -
配置阿里云 yum 源和 EPEL 源
yum
yum 配置 阿里云