ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 【Linux】Linux软件安装管理6 RHEL6配置使用163 centos yum源

【Linux】Linux软件安装管理6 RHEL6配置使用163 centos yum源

原创 Linux操作系统 作者:海星星hktk 时间:2016-04-14 20:48:21 0 删除 编辑
Linux软件安装管理6
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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29475508/viewspace-2081461/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle OCM 讲师。达梦认证讲师DM8-DCI。OceanBase认证讲师OBCI。拥有10g、12c OCM,OBCP等认证证书。曾任 Oracle WDP 注册OCM讲师,已培养Oracle OCP认证专家2000余人,培养Oracle OCM认证大师360余人。

注册时间:2014-02-08

  • 博文量
    128
  • 访问量
    2644749