我是靠谱客的博主 酷酷母鸡,这篇文章主要介绍Centos6/7 升级更换epel 源,现在分享给大家,希望可以做个参考。

1, CentOS 6 x86_64


wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo

yum clean all

yum makecache

yum repolist

rm -rf  /etc/yum.repos.d/*

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo


 2, CentOS 7 x86_64

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm

rpm -ivh epel-release-7-10.noarch.rpm

yum repolist (检查是否安装成功)

yum --enablerepo=epel info nginx (查看)

yum --enablerepo=epel install  nginx (用epel 源安装)


转载于:https://blog.51cto.com/hhslinux/1953220

最后

以上就是酷酷母鸡最近收集整理的关于Centos6/7 升级更换epel 源的全部内容,更多相关Centos6/7内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(120)

评论列表共有 0 条评论

立即
投稿
返回
顶部