如何配置yum源
以下是配置yum源的步骤:
1.备份原有的yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载新的yum源文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.清除原有yum源的缓存
yum clean all
4.更新yum源缓存
yum makecache
5.测试yum源是否可用
yum list
如果能够正常列出可用的软件包,则yum源配置成功。
原文地址: https://www.cveoy.top/t/topic/bnBT 著作权归作者所有。请勿转载和采集!