openSUSE 使用公共网络软件源(阿里源)

1.禁用所有原有的软件源
# zypper mr -da

2.加入阿里的 openSUSE 软件源
# sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.0/repo/oss openSUSE-Aliyun-OSS
# sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.0/repo/non-oss openSUSE-Aliyun-NON-OSS
# sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.0/oss openSUSE-Aliyun-UPDATE-OSS
# sudo zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.0/non-oss openSUSE-Aliyun-UPDATE-NON-OSS
(命令中最后一个参数为每一个源指定了一个别称)

3. 刷新所有处于 enable 状态的软件源
# zypper ref