5.9 Upgrading from openSUSE Leap to SUSE Linux Enterprise Server

You can upgrade an openSUSE installation online to SUSE Linux Enterprise Server. The procedure is analogous to Section 5.5, Upgrading with Zypper, but some additional steps are required. Before executing this procedure on a production system, we recommend to first run it on a test system that replicates your production setup.

To see for which openSUSE Leap versions a migration is supported, read Section 1.1, Supported Upgrade Paths to SLES 15 SP1.

WARNING: Not All openSUSE Packages Can Be Migrated

The openSUSE repositories provide more packages than are available in the SUSE Linux Enterprise Server repositories. If you have any of these packages installed, they will no longer receive updates after the migration. These packages will be removed when following the procedure below.

Make sure that all packages you need for operating your system are available in the SUSE Linux Enterprise Server repository. You can also check if the packages are available in the SUSE Package Hub repository. For details, see Section 18.3, SUSE Package Hub, (↑Deployment Guide).

To migrate from openSUSE Leap, execute the following procedure:

  1. Switch to a TTY, for example by pressing Ctrl+Alt+F1. Then log in as root.

  2. Install SUSEConnect.

    root # zypper in SUSEConnect
  3. Register at SCC to get the SUSE Linux Enterprise Server repositories.

    root # SUSEConnect -r REGISTRATION_CODE -p SLES/15.1/x86_64
  4. List and disable all openSUSE repositories on your system.

    root # zypper lr
    root # zypper mr -d REPO_IDS

    Replace REPO_IDS with a space character separated list of all enabled openSUSE repositories.

  5. Now add the modules you need for your installation.

    root # SUSEConnect --list-extensions
    [...]
    root # SUSEConnect -p sle-module-basesystem/15.1/x86_64

    To have replacements for most Leap packages, we recommend to enable the Basesystem, Desktop Applications, Server Applications and Legacy modules. Additionally, we recommend to enable the SUSE Package Hub.

  6. Migrate installed packages to the SUSE Linux Enterprise Server repositories.

    root # zypper dup --force-resolution
  7. Remove orphaned packages.

    root # zypper rm $(zypper --no-refresh packages --orphaned | gawk '{print $5}' | tail -n +5)
  8. Finally, reboot the system.