Centos如何安装阿里云yum源

2024-10-17 03:23:50

1、备份系统自带的yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

Centos如何安装阿里云yum源

3、或者用另外一种方法下载curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo建议采用后面一种方法下载,感觉效率要高些

Centos如何安装阿里云yum源

5、vim /etc/yum.repos.d/CentOS-Base.repo查看里面的内容,确实已经由系统自带的yum源替换为了阿里的yum源了

Centos如何安装阿里云yum源
猜你喜欢