Redhat5.6 configure centos yum

Source: Internet
Author: User

Today, we are working on redhat5.6 Enterprise Edition.

The solution is to use the centos Yum update source to implement the rhel5 Yum function"

I,

Download the four Yum files under centos5.6: http://centos.ustc.edu.cn/centos/

Run

Rpm-IVH -- nodeps yum-updatesd-0.9-2.el5.noarch.rpm
Rpm-IVH -- nodeps yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
Rpm-IVH -- nodeps yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Rpm-IVH yum-3.2.22-33.el5.centos.noarch.rpm

II,

Go to/etc/yum. erpos. d/to back up the original RedHat source list configuration file.

CD/etc/yum. Repos. d/
MV rhel-debuginfo.repo rhel-debuginfo.repo.bak (this is actually not backed up)

Download CentOS-Base.repo,: http://mirrors.ustc.edu.cn/centos/CentOS-Base.5.mirrors.repo

III,

Open the CentOS-Base.repo with VI.

Replace all $ releasever in the CentOS-Base.repo with 5.6

Everything is okay. Of course, I still need to install orcale.

Attachment; CentOS-Base.repo

######################################## #########################

# CentOS-Base.repo
#
# This file uses a new release list system developed by Lance Davis for centos.
# The mirror system uses the connecting IP address of the client and
# Update Status of each mirror to pick mirrors that are updated to and
# Geographically close to the client. You shoshould use this for centos updates
# Unless you are manually picking other mirrors.
#
# If the specified list = does not work for you, as a fall back you can try
# Remarked out baseurl = line instead.
#
#

[Base]
CentOS-5.6-Base
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

# Released updates
[Updates]
CentOS-5.6-Updates
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

# Packages used/produced in the build but not released
[Addons]
CentOS-5.6-Addons
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/addons/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

# Additional packages that may be useful
[Extras]
Name = CentOS-5.6-extras
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

# Additional packages that extend functionality of existing packages
[Centosplus]
CentOS-5.6-plus
Baseurl = http://mirrors.ustc.edu.cn/centos/5.6/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Gpgkey = http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

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.