[记录] openSUSE 使用第三方阿里网络软件源

步骤一:禁用所有原有的软件源
# zypper mr -da

步骤二:添加阿里的 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

(补充:命令中最后一个参数为每这个源指定了一个别称)

步骤三:刷新所有处于 enable 状态的软件源
# zypper ref