RedHat software source prompt Unable to read consumer identity?

  

After installing the RedHat system, many users have an error message when installing the software source, that is, “Unable to read consumer identity”, what is the reason? How to solve it, the following small series will introduce you to the solution of Unable to read consumer identity after RedHat installs the software source.

The prompt tells you, yum not read your user id. If you want to use redhat and don't want to spend thousands of dollars on the registration system, we can use the source of CentOS instead.

1. What does the registration system give us?

If we click on the system's RHN, we will prompt you to register the system's benefits:

1) Obtain the software source from the official

2) Free or system installation image and upgrade

3) After the system failure, there are special maintenance personnel to cooperate with us.

For most people, we often only have to know whether the system can install the software normally. The mechanism of redhat on yum is like this. Read the configuration file /etc/yum.repos.d/file.repo through yum, download the rpm package from the corresponding website through the URL provided, and then call the underlying rpm program. installation. Among them, in the download link, you need to provide the consumer id. In theory, as long as we don't download the software on the official website, we can avoid registration problems.

2. An alternative site: centos

We all know that redhat is a commercial OS, but it is open source. Therefore, the community will recompile the redhat source code, and then remove the redhat trademark, and release it, this is centos. For the average user, it can be considered that centos and redhat are the same. Therefore, we can download the software source from the site corresponding to centos. Some domestic websites, such as Netease 163, provide some open source software download addresses, we can change the software source to domestic.

Go to /etc/yum.repos.d, there is a rhel-source.repo, first renamed rhel-source.repo.bak, make a backup

and then create a 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/cen Tos/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, then run yum update and it's ok.

3, need to uninstall redhat comes with yum program?

In theory, there is no need to uninstall the yum program of this machine. Of course, you can also install the yum of centos to replace the redhat yum program.

The above is the introduction of Unable to read consumer identity after RedHat installs the software source, mainly because there is no registration system, if you do not want to spend money, it is recommended to use CentOS source instead.

Copyright © Windows knowledge All Rights Reserved