修改centos7系统yum源

2025-11-08 09:55:18

1、备份本地yum源:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

修改centos7系统yum源

2、下载阿里yum源配置文件:

http://mirrors.aliyun.com/repo/Centos-7.repo

修改centos7系统yum源

修改centos7系统yum源

3、更新所有软件命令:

yum update

修改centos7系统yum源

4、清除缓存目录下的软件包及旧的headers:

yum clean all

修改centos7系统yum源

5、更新yum缓存:

yum makecache

修改centos7系统yum源

修改centos7系统yum源

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢