How to migrate from suse 15 sp4 to opensuse 15.4

I use opensuse 15.4 iso to install a opensuse OS, but its /etc/os-release still shows it’s suse 15 sp4. How to conver all info from suse to opensuse, although it can read opensuse 15.4 repos and apply patches.

Here on openSUSE Leap 15.4:

 > cat /etc/os-release 
NAME="openSUSE Leap"
ID_LIKE="suse opensuse"
PRETTY_NAME="openSUSE Leap 15.4"
 > rpm --query --whatprovides /etc/os-release

In other words, you need to make sure that, you’ve installed the package “openSUSE-release

 > LANG=C zypper info openSUSE-release
Loading repository data...
Reading installed packages...

Information for package openSUSE-release:
Repository     : Hauptaktualisierungs-Repository
Name           : openSUSE-release
Version        : 15.4-lp154.166.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 73,4 KiB
Installed      : Yes
Status         : up-to-date
Source package : openSUSE-release-15.4-lp154.166.1.src
Summary        : openSUSE Leap 15.4
Description    : 
    openSUSE Leap 15.4.


It does not explain how someone got SUSE when installing openSUSE. At the very least we need to see

cat /etc/os-release
rpm -qif /etc/os-release

When you say “still shows” that means IMO that you had SUSE 15 SP 4 installed earlier. But when you installed openSUSE clean and fresh, not using any of the file systems from the old installation, it is impossible that your openSUSE installation iherited even one byte from the earlier installation… Thus you may elaborate a bit on what you mean with “I use openSUSE 15.4 ISO to install …”.

And, that there’s possibly a SUSE S.A. repository in the list of repositories being used –

  • I’m assuming that, OP has a valid SUSE contract which may well explain the issue.