Aliyun server Yum source update question from where to _linux

Source: Internet
Author: User
Tags centos aliyun

Aliyun official website also gave the Yum unloading load and modify the source for Ali Cloud Intranet documents. Step here do not say, you can click on the link below for reference

Https://help.aliyun.com/knowledge_detail/6708643.html

Https://help.aliyun.com/knowledge_detail/7613310.html

After reloading Yum and modified Yum source for Ali Cloud Intranet, basic wood have what problem. However, when the installation of httpd, the error, the general is unable to find a dependency on the package. Then decisively replace the Yum source for 163, the specific procedures can be referred to as follows:

Note: #下面wget获取的centos6的yum源, if you are the other version, just need to change the number behind the/.help/centos, such as your centos7 wget address should be

Http://mirrors.163.com/.help/CentOS7-Base-163.repo

Copy Code code as follows:

#首先备份
/etc/yum.repos.d/centos-base.repo
Cd/etc/yum.repos.d
MV Centos-base.repo Centos-base.repo.bak
#wget获取的yum源可根据自己系统版本进行修改
wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
MV Centos6-base-163.repo Centos-base.repo
#运行以下命令生成缓存
Yum Clean All
Yum Makecache

The above is a small set to introduce the Aliyun server Yum source update the relevant knowledge of the problem, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.