cat ~/.zhiliao.history

无聊就该多读书。

openSUSE Leap & Tumbleweed 添加软件源

首先禁用全部仓库: sudo zypper mr -da

如果是Tumbleweed

sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/tumbleweed/repo/oss/      Tumbleweed-Oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/tumbleweed/repo/non-oss/  Tumbleweed-Non-Oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/packman/openSUSE_Tumbleweed/       Tumbleweed-Packman-aliyun

# 更新执行
sudo zypper dup

如果是Leap

sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/distribution/leap/$releasever/repo/oss/      repo-oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/distribution/leap/$releasever/repo/non-oss/  repo-non-oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/update/leap/$releasever/oss/                 repo-update-oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/opensuse/update/leap/$releasever/non-oss/             repo-update-non-oss-aliyun
sudo zypper ar -fc http://mirrors.aliyun.com/packman/openSUSE_Leap_$releasever/                    repo-packman-aliyun

# 更新执行
sudo zypper update