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. 1. Download the four YUM files under CentOS5.6.

Today, we are working on RedHat 5.6 Enterprise Edition. You are charged.

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.