RedHat Enterprise Linux 6.4 uses the Yum source of NetEase CentOS 6

Source: Internet
Author: User

1, first to Http://mirrors.163.com/centos download package

x86 Address: http://mirrors.163.com/centos/6/os/i386/Packages/

x86_64 Address: http://mirrors.163.com/centos/6/os/x86_64/Packages/

The necessary packages to download are (for example, 64-bit systems):

A python-iniparse-0.3.1-2.1.el6.noarch.rpm

b yum-3.2.29-81.el6.centos.noarch.rpm

C yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

D yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm

(The above package has been uploaded micro Cloud)

or download by downloading the command:

# wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.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-3.2.29-81.el6.centos.noarch.rpm# wget http://mirrors.163.com/ centos/6/os/x86_64/packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
2. Uninstall the Yum that comes with Redhat
# Rpm-qa | grep Yum | Xargs rpm-e--nodeps

  

Note:

A, Xargs is a common command for UNIX and UNIX-like operating systems. It does this by converting the argument list to small pieces to pass to other commands to avoid the problem of too long argument lists

b 、--nodeps forced unloading, regardless of dependencies

C, some Linux default does not install Yum

3. Install the download of the CentOS Yum package:
# 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# RPM-IVH yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm yum-3.2.29-81.el6.centos.noarch.rpm

[ note] : The last 2 need to be installed together, or there will be a dependency error

[ Error description]: May encounter problems during installation: Error found, python-urlgrabber version must be greater than or equal to 3.9.1-10

View python information for your system

# Rpm-qa|grep Python-urlgrabber

Found Python-urlgrabber-3.9.1-9.el6.noarch version less than 3.9.1-10

Uninstall: Python-urlgrabber-3.9.1-9.el6.noarch

#  Rpm-e Python-urlgrabber-3.9.1-9.el6.noarch

Install in http://mirrors.163.com/centos/6/os/x86_64/Packages/download required Python-urlgrabber version (Micro Cloud uploaded)

#  RPM-IVH python-urlgrabber-3.9.1-11.el6.noarch.rpm

Install and reinstall the package you just made an error

4. Download the Centos6-base-163.repo file to the http://mirrors.163.com CentOS Help document, store it in/etc/yum.repo.d/, or download it by command:
#  wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
5. Edit the Centos6-base-163.repo file and change the $releasever to the CentOS version number

[ Error description]: If there are multiple versions of Python on Linux, the following error will occur when you enter the Yum command

The workaround is to change the #!/usr/bin/python of the/usr/bin/yum file to #!/usr/bin/python2.6

#  Vim/usr/bin/yum

  

6. Clear the original cache
#  Yum Clean all
7. Install package test with Yum
#  Yum-y Install NTP

  

RedHat Enterprise Linux 6.4 uses the Yum source of NetEase CentOS 6

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.