RHEL5使用163yum源

rpm --import http://mirrors.163.com/centos//RPM-GPG-KEY-CentOS-5

安装163的GPG

rpm -qa gpg-pubkey*

查看是否有 gpg key

 

vim /etc/yum.repo.d/163.repo 输入以下内容

[base]

name=Red Hat Enterprise Linux $releasever -Base

baseurl=http://mirrors.163.com/centos/5//os/$basearch/

gpgcheck=1

[update]

name=Red Hat Enterprise Linux $releasever -Updates

baseurl=http://mirrors.163.com/centos/5//updates/$basearch/

gpgcheck=1

[extras]

name=Red Hat Enterprise Linux $releasever -Extras

baseurl=http://mirrors.163.com/centos/5//extras/$basearch/

gpgcheck=1

[addons]

name=Red Hat Enterprise Linux $releasever -Addons

baseurl=http://mirrors.163.com/centos/5//addons/$basearch/

gpgcheck=1

你可能感兴趣的:(yum源,163源)