当前位置:首页 > 技术杂谈 > 正文

配置yum源

2024-03-31 技术杂谈

 

1.安装wget

  yum install -y wget

2.备份/etc/yum.repos.d/CentOS-Base.repo

  cd /etc/yum.repos.d/

  mv CentOS-Base.repo CentOS-Base.repo.back

3.下载阿里云的CentOS-6.repo文件

  wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

4.重新加载yum

  yum clean all

  yum makecache

 

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/a/17281.html