Upgrade RedHatLinux with CentOS data packets

Source: Internet
Author: User
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 *

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.