- Delete Redhat's original Yum
Rpm-aq|grep Yum|xargs rpm-e Nodeps
- Download Yum installation file
Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm
Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
- Installing components
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
The last 2 of them used to be a failed bird.
# RPM-IVH yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
Warning:yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
error:failed dependencies:
Yum >= 3.0 is needed by Yum-plugin-fastestmirror-1.1.30-37.el6.noarch
# RPM-IVH yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
Warning:yum-3.2.29-73.el6.centos.noarch.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
error:failed dependencies:
Python-urlgrabber >= 3.9.1-10 is needed by Yum-3.2.29-73.el6.centos.noarch
You have new mail in/var/spool/mail/root
- Less Python components
Download
http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
# RPM-IVH python-urlgrabber-3.9.1-11.el6.noarch.rpm
Warning:python-urlgrabber-3.9.1-11.el6.noarch.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
file/usr/lib/python2.6/site-packages/urlgrabber/grabber.py from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
#
- Download a python2.6 Reload
http://mirrors.163.com/centos/6/os/x86_64/Packages/python-2.6.6-64.el6.x86_64.rpm
#rpm-E python-2.6.6-52.el6.x86_64 nodeps
# RPM-IVH python-2.6.6-64.el6.x86_64.rpm
Warning:python-2.6.6-64.el6.x86_64.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
error:failed dependencies:
Python-libs (x86-64) = 2.6.6-64.el6 is needed by python-2.6.6-64.el6.x86_64
#
- Continue to repair dependent packages
http://mirrors.163.com/centos/6/os/x86_64/Packages/python-libs-2.6.6-64.el6.x86_64.rpm
RPM-IVH python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm
# RPM-IVH python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm--nodeps
Warning:python-libs-2.6.6-64.el6.x86_64.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
file/usr/lib64/libpython2.6.so.1.0 from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package Pyth On-libs-2.6.6-52.el6.x86_64
file/usr/lib64/python2.6/cgihttpserver.py from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from Package python-libs-2.6.6-52.el6.x86_64
File/usr/lib64/python2.6/cgihttpserver.pyc from Install of python-libs-2.6.6-
File/usr/lib64/python2.6/distutils/sysconfig.pyc from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file From Package python-libs-2.6.6-52.el6.x86_64
File/usr/lib64/python2.6/lib-dynload/_fileio.so from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file From Package python-libs-2.6.6-52.el6.x86_64
64.el6.x86_64 conflicts with file from the package python-libs-2.6.6-52.el6.x86_64
You have new mail in/var/spool/mail/root
- It seems like something went wrong, give you face don't be, force install
# RPM-IVH python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm--nodeps--force
Warning:python-libs-2.6.6-64.el6.x86_64.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
1:python ########################################### [50%]
2:python-libs ########################################### [100%]
- Phtyon URL also rough down
# RPM-IVH python-urlgrabber-3.9.1-11.el6.noarch.rpm
Warning:python-urlgrabber-3.9.1-11.el6.noarch.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
file/usr/lib/python2.6/site-packages/urlgrabber/grabber.py from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
File/usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from Install of Python-urlgrabber-3.9.1-11.el6.noarch Conflicts with file from the package Python-urlgrabber-3.9.1-9.el6.noarch
# RPM-IVH python-urlgrabber-3.9.1-11.el6.noarch.rpm--nodeps--force
Warning:python-urlgrabber-3.9.1-11.el6.noarch.rpm:header V3 rsa/sha1 Signature, K
Red hat 6 uses CentOS7 yum and yum sources