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.
-
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.
-
Enter the wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo command in the terminal to download the Centos-base.repo file.
-
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
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