CentOS8 64位如何修改软件源
备份,以免出错后可以恢复
1 | mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
下载新的源文件
阿里云
- wget
1 | # CentOS 5 |
- curl
1 | # CentOS 5 |
USTC
1 | # CentOS7 |
运行以下命令生成缓存
1 | yum clean all |
Code 20
1 | mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
1 | # CentOS 5 |
1 | # CentOS 5 |
1 | # CentOS7 |
1 | yum clean all |