CentOS 配置yum源
1.下载yum源
2. 替换
mv Centos-7.repo /etc/yum.repos.d/CentOS-Base.repo mv epel-7.repo /etc/yum.repos.d/epel.repo
3.清理缓存,生成缓存,列出yum源
yum clean all
yum makecache
yum repolist
1.下载yum源
2. 替换
mv Centos-7.repo /etc/yum.repos.d/CentOS-Base.repo mv epel-7.repo /etc/yum.repos.d/epel.repo
3.清理缓存,生成缓存,列出yum源
yum clean all
yum makecache
yum repolist