Ali configuration quick and easy configuration Centos7 source

  1. Enter the file path where the source yum
    cd /etc/yum.repos.d/

    2. Download the repo file with wget command

    wget http://mirrors.aliyun.com/repo/Centos-7.repo

    3. If there is no wget command, you will have to install wget command

    yum install -y wget

    4. The current directory is /etc/yum.repos.d, so just downloaded Centos-7.repo also on this directory
    5. Back up the original repo file

    mv CentOS-Base.repo CentOS-Base.repo_bak

    6. Replace the repo file

    mv Centos-7.repo CentOS-Base.repo

    7. Do yum update command source

    yum clean all
    yum makecache
    yum update -y

    This concludes the source Ali is ready for use.

Guess you like

Origin blog.51cto.com/9103824/2437028