Aliyun server yum source update problem from where

  • 2020-05-10 23:19:30
  • OfStack

Aliyun official website also gives the yum uninstall reinstall and modify the source for aliyun Intranet documents. Step here do not say, 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 reinstalling yum and modifying the source of yum to ali cloud Intranet, there is basically no problem. When installing httpd, however, an error was reported and the dependency package was largely missing. Then, the yum source is 163, and the specific operation steps can be referred to as follows:

Note: the yum source of centos6 is obtained by wget below. If you have another version, just change the number after /.help /CentOS. For example, the address of centos7 wget should be

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


# First of all, the backup
/etc/yum.repos.d/CentOS-Base.repo
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
#wget To obtain the yum The source can be modified according to its own system version
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
# Run the following command to generate the cache
yum clean all
yum makecache


Related articles: