Centos 配置稳定yum源

Linux wangleiadmin 806℃ 0评论

Centos 6.* 配置YUM源


rpm -qa |grep epel

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

yum clean all

yum makecache

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

yum repolist

yum search epel

yum install -y epel-release

Centos 7.* 配置YUM源


rpm -qa |grep epel

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

yum clean all

yum makecache

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

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

yum repolist

yum search epel

yum install -y epel-release

转载请注明:暖风 » Centos 配置稳定yum源

喜欢 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址