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

你可能感兴趣的:(openSUSE leap 42.2 使用阿里源)