FAQs about YUM source on RedHat

Source: Internet
Author: User
When yum commands are used on the RedHat system, the following problems occur: & ldquo; ThesystemisnotregisteredwithRHN & rdquo; the reason is that the node is not registered on the Red Hat Network. The solution is to use CentOS yum source 1. view the default yum package installed by rhel and uninstall [root @ zhu1 ~] # Rpm-qa | grepyumyum-fastestmirror-1.1.16-14.el5.centos.

The following problems occur when using the yum command on the RedHat system:
The reason "ThesystemisnotregisteredwithRHN" is that it is not registered on the RedHat network. The solution is to use the CentOS yum source.
1. View and uninstall the yum package installed by rhel by default.

[Root @ zhu1 ~] # Rpm-qa | grep yum
Yum-fastestmirror-1.1.16-14.el5.centos.1
Yum-updatesd-0.9-2.el5
Yum-metadata-parser-1.1.2-3.el5.centos
Yum-3.2.22-40.el5.centos
[Root @ zhu1 ~] # Rpm-qa | grep yum | xargs rpm-e -- nodeps

2. Download The centos yum package

[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[Root @ zhu1 ~] # Wget http://centos.ustc.edu.cn/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
# Installation
[Root @ zhu1 ~] # Rpm-ivh yum -*

3. download the new yum source to the/etc/yum. repos. d/directory.

[Root @ zhu1 ~] # Wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo


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

Recommended reading:

Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm

Redhat local yum source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm

Configuration http://www.linuxidc.com/Linux/2013-08/88217.htm for local yum sources in RedHat Linux

RedHat 6.2 Linux modify yum source free use CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.