Main references:
http://blog.itpub.net/25313300/viewspace-708509/
Http://blog.sina.com.cn/s/blog_50f908410101cto6.html
View Linux versions command: $ cat/etc/redhat-release
1. Delete Redhat's original Yum
Rpm-aq|grep Yum|xargs rpm-e--nodeps
2. Download the Yum installation file
Note that if you cannot find the file when you download it, log on to:http://mirrors.163.com/centos/6/os/x86_64/to find the appropriate file. And then download it again.
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
3. Install Yum
RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
RPM-IVH yum-3.2.27-14.el6.centos.noarch.rpm um-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
Note that the last two packages must be installed at the same time, otherwise they will depend on each other
----------Configuration NetEase Source
4. Update the Repo file
Mv/etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.repo.bak
VI /etc/yum.repos.d/rhel-debuginfo.repo
The contents are:
# centos-base.repo## The mirror system uses the connecting IP address of the client and the# update status of each Mir Ror to pick mirrors is updated to and# geographically close to the client. You should use this for CentOS updates# unless is manually picking other mirrors.## If the mirrorlist= does For your, as a fall back 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&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&arch= $basearch&repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6 #additional Packages Useful[extras]name=centos-6-extras-163.combaseurl=http://mirrors.163.com/centos/6/extras/$basearch/#mirrorlist =http://mirrorlist.centos.org/?release=6&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&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&arch= $basearch&repo=contribgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos-6
5. Yum Clean All
6. Yum Makecache
RedHat6.4 Installing the Yum source