redhat6.x modifying yum source to Centos-163 source

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-40.el6.centos.noarch.rpm

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

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

Download 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-40.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

(sometimes there will be mirrors.163.com unresolved, there are 2 solutions, one is direct access to http://mirrors.163.com/centos/6/os/ Select the appropriate system version and search for the required installation package, or add dns1:114.114.114.114 or 8.8.8.8 to the Ifcfg-etho)


2. Uninstall the Yum that comes with Redhat

Rpm-qa | grep Yum | Xargs rpm-e--nodeps

--nodeps forced uninstallation, regardless of dependencies


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-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

the last 2 need to be installed together, or there will be a dependency error

4. Download the Centos6-base-163.repo file and store it in the/ETC/YUM.REPO.D

cd/etc/yum.repo/

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

VI Centos6-base-163.repo

In command mode, enter: 0, $s/\ $releasever/6/g

6. Yum Clean all clears the original cache

7.yum Makecache get yum list


This article is from the "Summperpalace-linuxsa" blog, make sure to keep this source http://rockjz.blog.51cto.com/1617227/1659250

redhat6.x modifying yum source to Centos-163 source

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.