CentOS is compatible with RedHat, so we can use CentOS data packets to upgrade RedHatLinux. Modify yum configuration: 1, modify/etc/yum. repos. d/rhel-debuginfo.repo to the following content [rhel-debuginfo] name = RedHatEnterpriseLinux $ releasever-$ basearch-Debugbaseurl = ftp ://
CentOS is compatible with RedHat, so we can use CentOS data packets to upgrade RedHat Linux.
Modify yum Configuration:
1, modify/etc/yum. repos. d/rhel-debuginfo.repo to the following content
[Rhel-debuginfo]
Name = Red Hat Enterprise Linux $ releasever-$ basearch-Debug
Baseurl = Signature/
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
2. Download and import the yum key
Cd/etc/pki/rpm-gpg
[Root @ localhost rpm-gpg] # wget http://mirrors.kernel.org/centos/RPM-GPG-KEY-CentOS-5
-- 07:55:15 -- http://mirrors.kernel.org/centos/RPM-GPG-KEY-CentOS-5
Resolving mirrors.kernel.org... 199.6.1.174, 130.239.17.6, 149.20.4.71 ,...
Connecting to mirrors.kernel.org | 199.6.1.174 |: 80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1504 (1.5 K) [text/plain]
Saving to: 'rpm-GPG-KEY-CentOS-5'
100% [============================================== ========================================================== ====>] 1,504 833B/s in 1.8 s
07:55:20 (833 B/s)-'rpm-GPG-KEY-CentOS-5 'saved [1504/1504]
Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY *