首页 > 其他 > 详细

Centos6/7 升级更换epel 源

时间:2017-08-03 12:25:37      阅读:420      评论:0      收藏:0      [点我收藏+]

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 源安装)


本文出自 “hhslinux” 博客,谢绝转载!

Centos6/7 升级更换epel 源

原文:http://hhslinux.blog.51cto.com/5656312/1953220

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!