openSUSE leap 42.2 使用阿里源

1.首先禁用系统的源

sudo zypper mr -da

2.添加源

sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/42.2/non-oss/ openSUSE-42.2-Update-Non-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/oss/ openSUSE-42.2-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/42.2/repo/non-oss/     openSUSE-42.2-Non-Oss
sudo zypper addrepo -f http://mirrors.aliyun.com/packman/openSUSE_Leap_42.2/ openSUSE-42.2-packman

3.刷新源

sudo zypper ref

4.更新系统

sudo zypper up

    原文作者:owl
    原文地址: https://www.jianshu.com/p/058dcf2b8cee
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞