Configure RHEL6 to use the Yum source method of CentOS 6

Source: Internet
Author: User
Tags centos

RHEL6 is installed on the server, the RHN service is not purchased, so the source of CentOS is used.

Before deleting Yum

Rpm-aq|grep Yum|xargs rpm-e--nodeps

The following packages need to be installed:

python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
yum-3.2.27-14.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

PS: Search the software package in Google Small method, the example below, direct search:

yum-3.2.27-14.el6.centos.noarch.rpm Intitle:index

Configure Yum configuration files after installation.

cd/etc/yum.repos.d/
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
Sed-i "s/$releasever/6/" Centos6-base-163.repo

The system is a mirror image of x86_64,163, please select the corresponding version according to your own Rhel version.
You can then install the software using Yum install.
If you still have an error, edit the Rhel-source.repo under/ETC/YUM.REPOS.D, set all enable to 0, or delete the Rhel-source.repo directly.

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.