Redhat Configuring the source of CentOS

Source: Internet
Author: User

Copied from: http://jingyan.baidu.com/article/6d704a13f0d61128db51ca82.html?qq-pf-to=pcqq.temporaryc2c

We may encounter this situation when we use the Yum command in Redhat, and yum install build-essential prompts this system was not registered with the portal, then Yum installation fails. Share the solution below.

  1. Redhat This error is due to the lack of registered portal, we just need to update the source of Yum. Use the command cd/etc/yum.repos.d/to enter the Yum configuration directory.

  2. Enter the wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo command in the terminal to download the Centos-base.repo file.

  3. Then back up the original Rhel-debuginfo.repo, using the command MV Centos-base.repo Rhel-debuginfo.repo, will centos- Base.repo renamed to Rhel-debuginfo.repo.

  4. 4

    Successfully installed with Yum install build-essential.

    Configure the source to install what you want to install (no more source resources without Ubuntu)

Redhat Configuring the source of CentOS

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.