linux:redhat6.5 when you use Yum to prompt for registration problem Resolution one, the problem
The newly installed redhat6.5. After installation, log in to the system, using Yum. Tips:
This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.
cannot be used.
Redhat The default comes with a Yum source that needs to be registered before it can be updated. We want to be able to update without spending money, we need to replace Redhat's Yum source.
Two
Check if the Yum package is installed
Rpm-qa |grep Yum
Three
Delete Redhat's own Yum pack
Uninstall all of the Yum packages shown above (Do not check dependencies, delete rpm packages directly):
Rpm-qa|grep Yum|xargs rpm-e--nodeps
Then use the command to see if it has been uninstalled
Rpm-qa |grep Yum
View no information display indicates that the uninstallation is complete;
Iv. Download the new Yum package (Yum package using Centos6.5)
wget http://mirrors.163.com/centos/6/os/i386/Packages/yum-metadata-parser-1.1.2-16. El6.i686.rpmwget http: //mirrors.163.com/centos/6/os/i386/packages/yum-3.2.29-40. El6.centos.noarch.rpmwget http:// mirrors.163.com/centos/6/os/i386/packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
V. Installing the YUM Package
Note: A single installation package may depend on other packages (for example, Yum and yum-fastestmirror depend on each other), so we can put all these packages together and install them at the same time with one line of command:
RPM-IVH yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Six, replace the Yum source (using 163 of the source)
cd/etc/yum.repos.d/wget http://mirrors.163.com/.help/centos6-base-163. Repovi CentOS6- Base-163.repo
Edit the file, replace all the $releasever in the file with the version number, that is, change to 6, last save! Or simply copy the following memory to the Centos6-base-163.repo file (modified)
#Centos-base.repo##The mirror system uses the connecting IP address of the client and the#update status of each mirror to pick mirrors that is updated to and#geographically close to the client. You should the use of this for CentOS updates#unless you is manually picking other mirrors.##If The mirrorlist= does not work for you, as a fall back to you can try the#remarked out Baseurl= line instead.##[Base]name=centos-6-Base-163. Combaseurl=http://mirrors.163.com/centos/6/os/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=osGpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#released Updates[Updates]name=centos-6-Updates-163. Combaseurl=http://mirrors.163.com/centos/6/updates/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=updatesGpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#Additional packages that could be useful[Extras]name=centos-6-Extras-163. Combaseurl=http://mirrors.163.com/centos/6/extras/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=extrasGpgcheck=1Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#additional packages that extend functionality of existing packages[Centosplus]name=centos-6-Plus-163. Combaseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=centosplusGpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6#contrib-packages by Centos Users[Contrib]name=centos-6-Contrib-163. Combaseurl=http://mirrors.163.com/centos/6/contrib/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch= $basearch &repo=contribGpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
Seven, clear the original cache
# rebuild the cache to improve the speed of search install software Yum Clean all
Viii. Updating the system
Yum Update
linux:redhat6.5 require registration problem solution when using Yum