inushome 发表于 2018-5-11 13:53:27

更换 Redhat yum源 更新

  redhat 安装时,没有进行注册,在用yum install *的时候会提示
  由于redhat 没有注册,所有不能使用它自身的源进行更新,所以我们可以通过更换源来进行相关更新:
  更改yum的源,即更换/etc/yum.repos.d/rhel-debuginfo.repo 这个文件。
  将:
name=CentOS-5-Basebaseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5    #released updatesname=CentOS-5 - Updatesbaseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5    #packages used/produced in the build but not>替换至/etc/yum.repos.d/rhel-debuginfo.repo 文件
页: [1]
查看完整版本: 更换 Redhat yum源 更新