opensuse 42.1添加阿里源与中科大源

openSUSE官方镜像访问速度实在太慢。若想改善智能添加国内源方法如下!

1、以root用户身份登录,禁用所有软件源
zypper mr -da
2添加阿里源与中科大源

zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/42.1/oss  openSUSE-42.1-Update-Oss

zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/42.1/non-oss/ openSUSE-42.1-Update-Non-Oss
zypper addrepo -f http://mirrors.aliyun.com/opensu … leap/42.1/repo/oss/ openSUSE-42.1-Oss
zypper addrepo -f http://mirrors.aliyun.com/opensu … /42.1/repo/non-oss/  openSUSE-42.1-Non-Oss
zypper addrepo -f http://mirrors.aliyun.com/packman/openSUSE_Leap_42.1/ aliyun-packman

zypper ar -f http://mirrors.ustc.edu.cn/opens … leap/42.1/repo/oss/ leap-oss
zypper ar -f http://mirrors.ustc.edu.cn/opens … /42.1/repo/non-oss/ leap-non-oss



3
然后用下面的命令进行升级zypper ref
zypper dup
4 reboot重启即可