标签:clean 最好 cache aliyun etc com 设置 ref base
对于新装的系统,最好更新一下yum源,不然有的软件用yum命令安装不上,因为该软件不在默认的源中。
# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backup
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
# yum clean all
# yum makecache
# yum update(可选)
标签:clean 最好 cache aliyun etc com 设置 ref base
原文地址:https://www.cnblogs.com/feilstar/p/12651332.html