Configure the yum source of centos6.5

Source: Internet
Author: User
Tags epel repo

System Yum source (source, English repository, is the meaning of the resource library; yum, full name of Yellow Dog Updater, modified, is the centos Software Package Manager. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically process dependencies, and install all dependent software packages at a time .) In/etc/yum. Repos. d/, the system defaults to the source of the centos official website, and now changes it to the source of Netease 163. The modification steps are as follows:

  1. Go to the Yun source location and back up the original Yum Source:
    # Cd/etc/yum. Repos. d
    # Mv CentOS-Base.repo CentOS-Base.repo.bak

  2. Download the 163 Source:
    # Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    # Mv CentOS6-Base-163.repo CentOS-Base.repo

  3. Download and install the epel (extra packages for Enterprise Linux) package:
    # Wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    # Wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    # Rpm-IVH epel-release-6-8.noarch.rpm
    # Rpm-IVH remi-release-6.rpm

  4. Modify the Remi configuration file:
    # Vi/etc/yum. Repos. d/Remi. Repo
    Change enable = 0 to enable = 1;
    Remove the previous region of # baseurl = http://rpms.famillecollet.com/performanise/6/remi/?basearch;
    In the detail list = https://mirrors.fedoraproject.org/metalink? Repo = epel-6 & arch = $ basearch plus #;
    Save and exit.

  5. Re-establish buffer:
    # Yum clean all
    # Yum makecache

  6. Update Yum:
    # Yum update

Certificate --------------------------------------------------------------------------------------------------------------------------------------------

References:

  1. Centos6.5 modify Yum Source: http://www.cnblogs.com/zhxin/p/3579190.html
  2. Install RHEL epel repo: http://www.cnblogs.com/zhxin/p/3579190.html on centos6.5

Configure the yum source of centos6.5

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.