红联Linux门户
Linux帮助

RHEL的yum源,我几乎就没有搞懂,配置看不太懂,报错也不怎么理解

发布时间:2013-06-22 11:56:49来源:红联作者:YuriGagarin
RHEL好像不能通过网络更新yum源,只能通过CentOS的yum源更新。
  试用了3个版本的yum配置文件,都没有更新成功。
  下面这个,感觉是最接近成功的了,但就是不明白问题出在那里:
[root@nfs-client ~]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://ftp.twaren.net/Linux/CentOS/5/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://ftp.twaren.net/Linux/CentOS/5/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://ftp.twaren.net/Linux/CentOS/5/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://ftp.twaren.net/Linux/CentOS/5/addons/$basearch/
gpgcheck=1

----------------------------------------------------------------
我使用命令“yum -y install portmap”安装portmap,最后面的报错是:
[attach]39882[/attach]
  “yum -y install nfs-utils”,最后面的报错是:
[attach]39883[/attach]
  这些报错是什么意思?我应该如何做呢?

  拜托各位了,谢谢
文章评论

共有 10 条评论

  1. wujianguoshiye 于 2013-08-26 14:35:20发表:

    一起学习下

  2. BlueSky.Yu84 于 2013-07-10 10:28:12发表:

    RHEL的升级要花钱的,不如用Scientific Linux,如CentOS一样,同样的RHEL源码重编译的,不过网上的口碑Scientific比CentOS好很多...
    就拿安装镜像来说,CentOS一张DVD是装不下的,用U盘装也很麻烦的;Scientific镜像就小于DVD,在安装镜像的制作上,至少都不如Scientific周到

  3. ouwenbin 于 2013-07-07 20:02:43发表:

    首先name=名字 (随便)
    baseurl=路径
    enabled=0 是否使用这个源 1为开启0为关闭
    gpgcheck=1 是否开启密钥验证。一般关闭,为0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 这是密钥地址,开启就会去拿这个路径的密钥去和服务端进行匹配,不匹配则失败,为不信任的YUM源。

  4. YuriGagarin 于 2013-06-23 09:56:11发表:

    在RHEL 6,portmap软件包更名为rpcbind软件包了吗?
      为什么安装portmap时,会提示我rpcbind已经安装呢?

    [root@nfs-client ~]# yum -y install portmap
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Package rpcbind-0.2.0-4.1.el6.i686 already installed and latest version
    Nothing to do

  5. wwenyunkui 于 2013-06-22 22:28:11发表:

    我也很喜欢centos

    引用:
    RHEL 更新是需要你购买了服务才会提供更新的,需要你出钱的。你还不如直接用centos。
    lsgl2001 发表于 2013-6-22 15:58

  6. YuriGagarin 于 2013-06-22 18:01:32发表:

    portmap软件包是修改yum配置文件,所有“gpgcheck”都改为“0”后才安装成功。只可惜,这个配置还是不能成功安装portmap,也没有心情去截图,也查不到报错信息了。
      目前先这样吧。
      以下是这个配置:
    [root@nfs-client redhat-iso]# cat /root/yum/rhel-debuginfo.repo
    [rhel-debuginfo]
    name=Red Hat Enterprise Linux $releasever - $basearch - Debug
    baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
    enabled=0
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    [base]
    name=Red Hat Enterprise Linux $releasever -Base
    baseurl=http://ftp.twaren.net/Linux/CentOS/5/os/$basearch/
    gpgcheck=0
    [update]
    name=Red Hat Enterprise Linux $releasever -Updates
    baseurl=http://ftp.twaren.net/Linux/CentOS/5/updates/$basearch/
    gpgcheck=0
    [extras]
    name=Red Hat Enterprise Linux $releasever -Extras
    baseurl=http://ftp.twaren.net/Linux/CentOS/5/extras/$basearch/
    gpgcheck=0
    [addons]
    name=Red Hat Enterprise Linux $releasever -Addons
    baseurl=http://ftp.twaren.net/Linux/CentOS/5/addons/$basearch/
    gpgcheck=0

  7. YuriGagarin 于 2013-06-22 18:00:52发表:

    [align=center]成功安装nfs-utils包的过程[/align][root@nfs-client ~]# ll /mnt/cdrom/
    total 0
    [root@nfs-client ~]# mount /dev/cdrom /mnt/cdrom/
    mount: block device /dev/sr0 is write-protected, mounting read-only
    [root@nfs-client ~]# ll /mnt/cdrom/
    total 548
    dr-xr-xr-x. 2 root root 2048 Apr 14 2010 AP
    dr-xr-xr-x. 3 root root 2048 Apr 14 2010 EFI
    -r--r--r--. 4 root root 8445 Sep 11 2009 EULA
    -r--r--r--. 4 root root 18416 Sep 11 2009 GPL
    dr-xr-xr-x. 3 root root 2048 Apr 14 2010 images
    dr-xr-xr-x. 2 root root 2048 Apr 14 2010 isolinux
    -r--r--r--. 2 root root 114 Apr 14 2010 media.repo
    dr-xr-xr-x. 2 root root 514048 Apr 14 2010 Packages
    dr-xr-xr-x. 2 root root 4096 Apr 14 2010 repodata
    -r--r--r--. 4 root root 1669 Mar 29 2010 RPM-GPG-KEY-redhat-beta-2
    -r--r--r--. 4 root root 2036 Mar 29 2010 RPM-GPG-KEY-redhat-release-2
    -r--r--r--. 1 root root 2879 Apr 14 2010 TRANS.TBL
    [root@nfs-client ~]# mkdir /home/redhat-iso
    [root@nfs-client ~]# cp -Rf /mnt/cdrom/* /home/redhat-iso/
    [root@nfs-client ~]# cd /home/redhat-iso/
    [root@nfs-client redhat-iso]# df .
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda5 9365432 3922236 4967448 45% /home
    [root@nfs-client redhat-iso]# cat /etc/yum.repos.d/packagekit-media.repo
    [InstallMedia]
    name=Red Hat Enterprise Linux 6.0
    baseurl=file:///home/redhat-iso/
    gpgcheck=1
    enabled=1
    gpgkey=file:///home/redhat-iso/RPM-GPG-KEY-redhat-release-2
    [root@nfs-client redhat-iso]# yum -y install nfs-utils
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    InstallMedia | 3.7 kB 00:00 ...
    InstallMedia/primary_db | 2.5 MB 00:00 ...
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package nfs-utils.i686 1:1.2.1-10.el6 set to be updated
    --> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2) for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libtirpc for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libgssglue.so.1 for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libevent for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libnfsidmap.so.0 for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libtirpc.so.1 for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Processing Dependency: libevent-1.4.so.2 for package: 1:nfs-utils-1.2.1-10.el6.i686
    --> Running transaction check
    ---> Package libevent.i686 0:1.4.13-1.el6 set to be updated
    ---> Package libgssglue.i686 0:0.1-8.1.el6 set to be updated
    ---> Package libtirpc.i686 0:0.2.0-4.1.el6 set to be updated
    ---> Package nfs-utils-lib.i686 0:1.1.4-8.1.el6 set to be updated
    ---> Package rpcbind.i686 0:0.2.0-4.1.el6 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved
    ====================================================================================================
    Package Arch Version Repository Size
    ====================================================================================================
    Installing:
    nfs-utils i686 1:1.2.1-10.el6 InstallMedia 284 k
    rpcbind i686 0.2.0-4.1.el6 InstallMedia 49 k
    replacing portmap.i386 4.0-65.2.2.1
    Installing for dependencies:
    libevent i686 1.4.13-1.el6 InstallMedia 67 k
    libgssglue i686 0.1-8.1.el6 InstallMedia 22 k
    libtirpc i686 0.2.0-4.1.el6 InstallMedia 76 k
    nfs-utils-lib i686 1.1.4-8.1.el6 InstallMedia 63 k

    Transaction Summary
    ====================================================================================================
    Install 6 Package(s)
    Upgrade 0 Package(s)

    Total download size: 562 k
    Downloading Packages:
    ----------------------------------------------------------------------------------------------------
    Total 9.1 MB/s | 562 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libgssglue-0.1-8.1.el6.i686 1/7
    Installing : libtirpc-0.2.0-4.1.el6.i686 2/7
    Installing : rpcbind-0.2.0-4.1.el6.i686 3/7
    Installing : nfs-utils-lib-1.1.4-8.1.el6.i686 4/7
    Installing : libevent-1.4.13-1.el6.i686 5/7
    Installing : 1:nfs-utils-1.2.1-10.el6.i686 6/7
    Erasing : portmap-4.0-65.2.2.1.i386 7/7

    Installed:
    nfs-utils.i686 1:1.2.1-10.el6 rpcbind.i686 0:0.2.0-4.1.el6
    Dependency Installed:
    libevent.i686 0:1.4.13-1.el6 libgssglue.i686 0:0.1-8.1.el6 libtirpc.i686 0:0.2.0-4.1.el6
    nfs-utils-lib.i686 0:1.1.4-8.1.el6
    Replaced:
    portmap.i386 0:4.0-65.2.2.1
    Complete!
    [root@nfs-client redhat-iso]# yum -y install portmap
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Package rpcbind-0.2.0-4.1.el6.i686 already installed and latest version
    Nothing to do

  8. YuriGagarin 于 2013-06-22 16:39:37发表:

    3# lsgl2001

    我的虚拟机里有2个CentOS,只有1个RHEL。
      我就是想知道RHEL为什么会这样报错,关于版权付费的问题,我才其它网络资料里看到了。我的配置里用的就是CentOS的yum源。

  9. lsgl2001 于 2013-06-22 15:58:07发表:

    RHEL 更新是需要你购买了服务才会提供更新的,需要你出钱的。你还不如直接用centos。

  10. 于 2013-06-22 15:04:18发表:

    你的报错截图为什么看不到啊.难道是我这里的问题