There are some problems with yum warehouse configuration in redhat system.
[root@XAYQ-Test2 yum.repos.d] # yum list
Loaded plugins: fastestmirror, priorities, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
Since redhat's yum online update is free, it cannot be used without registration. Solution: uninstall the default installation of yum and reinstall it.
Rpm-qa | grep yum
Rpm-e-nodeps yum
Download the installation package for yum from the new one
[root@XAYQ-Test2 opt] # wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
[root@XAYQ-Test2 opt] # wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
[root@XAYQ-Test2 opt] # wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
1. Install yum software package
Note: individual installation packages 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 command:
# rpm-ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastes
2. Clear the original yum cache
Yum clear all
3. Rebuilding yum cache can improve the speed of yum search software.
Yum nakecache
4. Update yum
Yum update
Configure the yum repository after the update. This configuration requires the installation of ipvsadm, which is not available in the local yum repository, so use the
The http://mirrors.163.com/centos/6/os/i386/Packages/ address is used as the warehouse location. I installed 2.6.32-358.el6.i686. We can configure the corresponding warehouse according to the specific linux system.