Short tip: Convert SLES4SAP 12 to SLES 12

While there are scripts for migrating SLES to SLES4SAP, there are no tools the other way around. If you deployed the wrong template by mistake you can change the product without reinstallation with some manual steps. A comparable procedure has also been documented by the vendor for installing SUSE Manager.

First of all, identify the installed release:

1# rpm -qa | grep -i release
2SLES_SAP-release
3SLES_SAP-release-DVD

In this case, two packages and a symbolic link to the product need to be removed:

1# rpm -e --nodeps SLES_SAP-release SLES_SAP-release-DVD
2# rm /etc/products.d/baseproduct

Afterwards, edit the file /etc/zypp/zypp.conf:

1solver.onlyRequires = false

Next you will need to register the system in SUSE Customer Center using a SLES activation key or use SUSE Manager. Alternatively you can also use the installation DVD as zypper repository.

After this, ensure installing the SLES product and - if not done automatically - creating a symbolic link:

1# zypper in sles-release
2# ln -s /etc/products.d/SLES.prod /etc/products.d/baseproduct

Finally you will need to remove orphaned packages - those packages that are extending the SLES package base in SLES4SAP:

1# zypper packages --orphaned

In my case, the following pacakges needed to be removed:

1# zypper remove HANA-Firewall libgdata-lang yast2-hana* yast2-sap* saptune saprouter* sap-netscape-link sap-installation-wizard

After rebooting the system, the appropriate product should be enabled:

1$ grep -i pretty /etc/os-release
2PRETTY_NAME="SUSE Linux Enterprise Server 12 SP5"

Translations: