Linux软件安装管理6
RHEL6配置使用163 centos yum源
RHEL6配置使用163 centos yum源
linux服务器能够访问互联网时,也可以配置网络上的yum源
此处使用163 centos repo源配置rhel6.4操作系统网络yum源
rhel6.4对应centos源不存在,暂时使用centos6.7
http://mirrors.163.com/centos/6.7/os/x86_64/

测试网络
[root@rhel64 ~]# ping mirrors.163.com -c4

linux虚拟机访问外网,可参考
【Linux】Linux网络配置基础5 RHEL6 操作系统使用virtualbox NAT网络
编写配置文件,增加内容
[root@rhel64 ~]# vi /etc/yum.repos.d/rhel-source.repo
[centos6.7]
name=163 centos repo
baseurl=http://mirrors.163.com/centos/6.7/os/x86_64
gpgcheck=0

清空缓存
[root@rhel64 ~]# yum clean all

yum info 查看软件测试,新配置网络yum源可以使用
[root@rhel64 ~]# yum info xorg-x11-apps

吕星昊
2016.4.14