Abstract: If we have just installed the RedHat system, when we install the software source or update it, the following prompt will appear: & ldquo; Unabletoreadconsumeridentity & rdquo ;. Obviously, this prompt tells you that yum does not read your user ID. If you want to use redhat and do not want to spend several thousand yuan to register the system, we can use the CentOS source instead. 1. What does the registration system provide to us? If we click the RHN of the system
Abstract: If we have just installed the RedHat system, when we install the software source or update it, the following prompt will appear: "Unable to read consumer identity ". Obviously, this prompt tells you that yum does not read your user ID. If you want to use redhat and do not want to spend several thousand yuan to register the system, we can use the CentOS source instead.
1. What does the registration system provide to us?
If we click the RHN of the system, we will prompt the following advantages for registering the system:
1) obtain the software source from the official website
2) free or system installation images and upgrades
3) after system faults, dedicated maintenance personnel will work with us to handle them.
For most people, we often only have to do with whether the system can install software normally. The mechanism of yum on redhat is as follows: Read the configuration file/etc/yum through yum. repos. d/file. repo: Download the rpm software package from the website provided in, and then call the underlying rpm program for installation. The consumer id must be provided during the download process. Theoretically, registration can be avoided if we do not download software from the official website.
2. An alternative site: centos
We all know that redhat is a commercial OS, but it is open source code. Therefore, the Community will recompile the source code of redhat, remove the trademark of redhat, and release it. This is centos. Generally, you can think that centos and redhat are the same. Therefore, we can download the software source from the corresponding centos site. Some websites in China, such as Netease 163, provide some open source software. We can change the software source to domestic ones.
Go to/etc/yum. repos. d, where there is a rhel-source.repo, first change to rhel-source.repo.bak, make a backup
Then new rhel-source.repo
The content is as follows:
[Base]
Name = CentOS-$ releasever-Base
Baseurl = http://mirrors.163.com/centos/6.3/ OS /?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Released updates
[Updates]
Name = CentOS-$ releasever-Updates
Baseurl = http://mirrors.163.com/centos/6.3/updates/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Packages used/produced in the build but not released
# [Addons]
# Name = CentOS-$ releasever-Addons
# Baseurl = http://mirrors.163.com/centos/?releasever/addons/?basearch/
# Gpgcheck = 1
# Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that may be useful
[Extras]
Name = CentOS-$ releasever-Extras
Baseurl = http://mirrors.163.com/centos/6.3/extras/?basearch/
Gpgcheck = 1
Gpgkey = http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
# Additional packages that extend functionality of existing packages
[Centosplus]
Name = CentOS-$ releasever-Plus
Baseurl = http://mirrors.163.com/centos/6.3/centosplus/?basearch/
Gpgcheck = 1
Enabled = 0
Save and run yum update.
3. Do I need to uninstall the yum program that comes with redhat?
Theoretically, you do not need to uninstall the local yum program. Of course, you can also install centos yum to replace the redhat yum program. The related method can refer to RHEL not registered can not use yum problem solve http://www.linuxidc.com/Linux/2010-12/30773.htm
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10