配置OpenSUSE leap 15.2的zypper源为阿里源、中科大源

Linux 437℃

1、禁用原有软件源;

sudo zypper mr -da

2、配置为阿里zypper源

zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/non-oss/ ALI:Oss
zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/non-oss_debug/ ALI:non-oss_debug
zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/oss/ ALI:oss
zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/oss_debug/ ALI:oss_debug

3、配置为中科大zypper源

zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/\$releasever/repo/oss USTC:OSS
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/distribution/leap/\$releasever/repo/non-oss USTC:NON-OSS
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/\$releasever/oss USTC:UPDATE-OSS
zypper ar -fcg https://mirrors.ustc.edu.cn/opensuse/update/leap/\$releasever/non-oss USTC:UPDATE-NON-OSS

转载请注明:零五宝典 » 配置OpenSUSE leap 15.2的zypper源为阿里源、中科大源