opensuse42.3更新为15.2

1.先更新系统的软件

zypper update -y

2.删除42.3的软件源

删除原先的软件源

zypper rr  Ali:42.3:update:oss  Ali:42.3:update:nonoss Ali:42.3:oss Ali:42.3:nonoss

3.添加15.2的软件源

zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/oss Ali:15.2:oss
zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/non-oss Ali:15.2:nonoss
zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/oss Ali:15.2:update-oss
zypper addrepo -f http://mirrors.aliyun.com/opensuse/update/leap/15.2/non-oss Ali:15.2:update-nonoss

4.确认软件源更新成功

zypper lr -d

5.刷新

zypper ref

6.更新zypper

zypper patch --updatestack-only

7.更新系统

zypper dup -y

8.更新完毕后,重启系统

reboot

9.查看系统版本

cat /etc/os-release

NAME=“openSUSE Leap”
VERSION=“15.2”
ID=“opensuse-leap”
ID_LIKE=“suse opensuse”
VERSION_ID=“15.2”
PRETTY_NAME=“openSUSE Leap 15.2”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:opensuse:leap:15.2”
BUG_REPORT_URL=“https://bugs.opensuse.org”
HOME_URL=“https://www.opensuse.org/”
#显示15.2就说明更新成功了

你可能感兴趣的:(opensuse42.3更新为15.2)