centos系统中yum安装应用出现doesn't have enough cached

时间:2022-07-23
本文章向大家介绍centos系统中yum安装应用出现doesn't have enough cached,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

解决方法:修改默认yum源为阿里云yum源,步骤如下:

  1. 备份原有yum源:
mv /etc/yum.repos.d /etc/yum.repos.d.bak
  1. 创建yum源目录
mkdir /etc/yum.repos.d
  1. 下载阿里云yum源配置
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  1. 重建缓存
yum clean all
yum makecache