Install the rehat software source " Unable to read consumer identity"

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Abstract: if we just installed rehat system, when we install the software source or update, there will be the following tips: Unable to read consumer identity "". Obviously, the tips to tell you, yum did not read to your user ID. If you want to use the RedHat also don't want to spend thousands of yuan of registration system, we can use the CentOS source to replace.


1 registration system provides us with what?


If we click on the system of RHN, various benefits will prompt registration system:

1)Obtained from the official software source

2)Free or installation of the system image and upgrade

3)System fault, have specialized maintenance personnel to coordinate our processing

For most people, we often only relationship, normal system can be installed software is enough. The mechanism of RedHat Yum is that, through the yum to read configuration files through /etc/yum.repos.d/file.repo, which provides Web site, the site to download the RPM software package, and then calls the underlying rpm to install the program. Among them, in the download link, the need to provide consumer ID. In theory, as long as we do not to the official website to download the software, you can avoid the problem of registration.


2 an alternative site: centos


As we all know, RedHat is a commercial OS, but it is open source. So, the community will have the RedHat source code to compile, then remove the RedHat trademark, publishing, this is centos. For the average user, can think of: CentOS and RedHat are the same. Therefore, we can to CentOS corresponding to the site to download software source. Some sites, such as NetEase 163 provides some open source software download address, we will be able to change the domestic software source.


Access to the /etc/yum.repos.d, one of the first rhel-source.repo, renamed rhel-source.repo.bak, make a backup

Then the new rhel-source.repo

The contents are 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, then run Yum update on OK.


Three, need to uninstall RedHat Yum own procedures?


In theory, no need to uninstall the yum program. Of course, you can also install the CentOS Yum to replace the RedHat Yum program. The method can be found here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Burnell at December 20, 2013 - 4:25 AM