Red hat 6 uses CentOS7 yum and yum sources

Source: Internet
Author: User
Tags sha1

    1. Delete Redhat's original Yum

Rpm-aq|grep Yum|xargs rpm-e Nodeps

    1. 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

    1. 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

    1. 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

#

    1. 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

#

    1. 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

    1. 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%]

    1. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.