【ARM环境搭建】Redhat Enterprise6.3 yum源的配置

来源:互联网 发布:刀锋铁骑高级书数据 编辑:程序博客网 时间:2024/06/08 11:24

yum是Redhat Linux在线安装更新及软件的工具,但是这是RHEL的收费功能,如果没有购买Redhat的服务时不能使用RHEL5的更新源的,会提示注册。由于CentOS是从Redhat演化而来的免费Linux版本,因此可以利用CentOS的yum更新源来实现RHEL的YUM功能。也可以用网易163镜像源来更新。

1、在配置之前,得保证redhat已经安装yum:

[root@RedHatForARM yum.repos.d]# rpm -qa | grep yumyum-rhn-plugin-0.9.1-40.el6.noarchyum-metadata-parser-1.1.2-16.el6.i686yum-utils-1.1.30-14.el6.noarchyum-3.2.29-30.el6.noarchyum-plugin-security-1.1.30-14.el6.noarch
2、创建yum源的repo文件

# cd /etc/yum.repos.d/# touch CentOS-Base-163.repo  CentOS-Base.repo# lsCentOS-Base-163.repo  CentOS-Base.repo  rhel-source.repo
      上海交大的CentOS更新源CentOS-Base.repo
# vim CentOS-Base.repo 
      将以下代码写入CentOS-Base.repo

       网易163yum更新源
# vim CentOS-Base-163.repo
3、清除原先的yum配置文件

# yum clean all
4、测试一下yum

[root@RedHatForARM yum.repos.d]# yum list gccLoaded plugins: product-id, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identityRepository base is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository centosplus is listed more than once in the configurationRepository contrib is listed more than once in the configurationAvailable Packagesgcc.i686                            4.4.7-4.el6                             base
完成。




0 0
原创粉丝点击