Redhat Linux configuration Yum repository for CentOS source

Source: Internet
Author: User

1. First delete the system original Yum command

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

2. Download the CentOS version of the Yum Command pack

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

You need to download the following packages:

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

yum-3.2.29-73.el6.centos.noarch.rpm

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

yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

3. Start installing Yum

RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/86/2D/wKiom1e2y03C6lxbAAAfBSVyziw826.png-wh_500x0-wm_3 -wmp_4-s_3086497978.png "title=" 1.png "alt=" Wkiom1e2y03c6lxbaaafbsvyziw826.png-wh_50 "/>

RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/86/2D/wKioL1e2y1jhqavPAAAc4G2PDdk039.png-wh_500x0-wm_3 -wmp_4-s_2733745939.png "title=" 2.png "alt=" Wkiol1e2y1jhqavpaaac4g2pddk039.png-wh_50 "/>

RPM-IVH yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/86/2D/wKiom1e2y2WQ4O7uAAAe0gvIRUk517.png-wh_500x0-wm_3 -wmp_4-s_1148817597.png "title=" 3.png "alt=" Wkiom1e2y2wq4o7uaaae0gviruk517.png-wh_50 "/>

If the above problems occur during installation, you can add the--nodeps parameter to enforce

RPM-IVH yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm--nodeps

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/2D/wKioL1e2y3LgTE-IAAAjBM4xfCo126.png-wh_500x0-wm_3 -wmp_4-s_3197799307.png "title=" 4.png "alt=" Wkiol1e2y3lgte-iaaajbm4xfco126.png-wh_50 "/>

4. Modifying the Yum configuration file

Cd/etc/yum.repos.d

Backup the original file first

CP Rhel-source.repo Rhel-source.repo_bak

Open http://mirrors.163.com/.help/centos.html Page

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/2D/wKiom1e2y4KAUGmjAAAV8BJwROo677.png-wh_500x0-wm_3 -wmp_4-s_3516368975.png "title=" 5.png "alt=" Wkiom1e2y4kaugmjaaav8bjwroo677.png-wh_50 "/>

Select version, download Centos6-base-163.repo file

Replace the contents of the Rhel-source.repo file

Cat Centos6-base-163.repo > Rhel-source.repo

Modify $releasever in Rhel-source.repo file to version number 6

Sed-i ' s/\ $releasever/6/g ' Rhel-source.repo

5. Empty the Yum cache

Yum Clean All

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/86/2D/wKiom1e2y53hc34xAAAfQZH5t6E811.png-wh_500x0-wm_3 -wmp_4-s_1226753724.png "title=" 6.png "alt=" Wkiom1e2y53hc34xaaafqzh5t6e811.png-wh_50 "/>

6. Cache the package information on the server to a local

Yum Makecache

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/2D/wKioL1e2y7fAiyG4AABeipRq7Ls880.png-wh_500x0-wm_3 -wmp_4-s_1105114468.png "title=" 7.png "alt=" Wkiol1e2y7faiyg4aabeiprq7ls880.png-wh_50 "/>

7. Test the configuration of the Yum source


This article is from the "11961252" blog, please be sure to keep this source http://11971252.blog.51cto.com/11961252/1840359

Redhat Linux configuration Yum repository for CentOS 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.