Red Hat6.4 设置网络yum源

首先备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
去163找到版本linux6的repo下载
地址:
http://mirrors.163.com/.help/centos.html

如果懒得找,就直接使用下面的,这个是针对0s6的
http://mirrors.163.com/.help/CentOS6-Base-163.repo
(注意其他地址比如阿里的有问题后面会提示http://mirrors.cloud.aliyuncs.com/centos/6Server/os/x86_64/repodata/repomd.xml这个文件找不到)

cd /etc/yum.repos.d/
wget -O /etc/yum.repos.d/163.rep http://mirrors.163.com/.help/CentOS6-Base-163.repo

yum clean all
yum makecache


测试:
yum install openssl
原文地址:https://www.cnblogs.com/rdchen/p/13361947.html