Centos 7 uses 163 yum Source

Source: Internet
Author: User
Tags yum repolist

Centos 7 uses 163 yum Source

This article describes how to use the 163 yum source.

Download. you can install the repo source, but sometimes we need to install some additional Packages, so we need to download the Extra Packages for Enterprise Linux (EPEL) source. for example, if we need to install ansible with yum, We need to install epel.

  1. Install the repo source.

    The repo source generally includes three parts: base, updates, and Extras.
    $ cd /etc/yum.repos.d/
    $ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
    If there are other sources, you can temporarily rename them as other extensions, such as centos-base.repo.bak
    $ mv CentOS7-Base-163.repo CentOS7-Base.repo
    $ yum clean all
    $ yum makecache

  2. Install the epel source.

    $ yum install epel-release
    $ yum makecache

  3. Check whether the installation is successful

    $ yum repolist

    Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * epel: ftp.cuhk.edu.hkrepo id                                               repo name                                                                           statusbase/7/x86_64                                         CentOS-7 - Base - 163.com                                                            9,007epel/x86_64                                           Extra Packages for Enterprise Linux 7 - x86_64                                      10,133extras/7/x86_64                                       CentOS-7 - Extras - 163.com                                                            310updates/7/x86_64                                      CentOS-7 - Updates - 163.com                                                         1,687repolist: 21,137

    From the above output, we can see that we have installed three parts of repo: base, updates, Extras. While EPEL is installed with epel.

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.