Set Yum source in RedHat

Source: Internet
Author: User

RedHat sets Yum source Linux: RedHat AS 6.2. 1. Delete the original yum: rpm-aq | grep yum | xargs rpm-e-nodeps 2. Install the new yum rpm-ivh http://mirrors.163.com/centos/6/ OS /x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm. Note: python-iniparse-0.3.1-2.1.el6.noarch.rpm this version may not necessarily exist on this address as the package is updated, you can enter the http://mirrors.163.com/centos/6/ OS /x86_64/Packages (CentOS6), this page has a list of specific packages, find the python-iniparse package, modify it to the correct address. The following steps are similar to this step. Rpm-ivh http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm rpm-ivh http://mirrors.163.com/centos/6/ OS /x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm rpm-ivhhttp: // rpm Note: This is Two rpm packages cd/etc/yum. repos. d/"5" wget http://mirrors.163.com/.help/CentOS6-Base-163.repo "6" sed-I "s/\ $ releasever/6/" CentOS6-Base-163.repo "7" yum makecache

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.