a13698822086 发表于 2018-5-12 08:57:12

redhat使用163 CentOS yum源

1.安装163的GPG,也可增加其他资源库
rpm --import http://mirrors.163.com/centos//RPM-GPG-KEY-CentOS-5
  
  2.检查GPG Key
  rpm -qa gpg-pubkey*
  
  3.如果要删除Key,使用以下命令(一般不需执行):
  rpm -e gpg-pubkey-e8562897-459f07a4
  
  4.复制添加以下更新点插入到rhel-debuginfo.repo文本里后面
  vi /etc/yum.repos.d/rhel-debuginfo.repo
  
  
  name=Red Hat Enterprise Linux $releasever -Base
  baseurl=http://mirrors.163.com/centos/5//os/$basearch/
  gpgcheck=1
  
  name=Red Hat Enterprise Linux $releasever -Updates
  baseurl=http://mirrors.163.com/centos/5//updates/$basearch/
  gpgcheck=1
  
  name=Red Hat Enterprise Linux $releasever -Extras
  baseurl=http://mirrors.163.com/centos/5//extras/$basearch/
  gpgcheck=1
  
  name=Red Hat Enterprise Linux $releasever -Addons
  baseurl=http://mirrors.163.com/centos/5//addons/$basearch/
  gpgcheck=1
  
  5.清理yum缓存
  yum clean all
页: [1]
查看完整版本: redhat使用163 CentOS yum源