SDB:System upgrade
Recommended articles
Related articles
Upgrade to Leap 16.1
In most cases, upgrading is as simple as running:
sudo zypper --releasever 16.1 dup
or
sudo opensuse-migration-tool
However, major version upgrades may include repository changes. In such cases, additional steps might be required. The opensuse-migration-tool can simplify this process by handling repository adjustments automatically.
Major changes
New opensuse-migration-tool
Starting with Leap 15.6, the opensuse-migration-tool is the recommended method for upgrading between Leap releases (e.g. 15.6 → 16.0, 16.0 → 16.1).
It also supports cross-distribution migrations, such as:
- Leap → SLES 16.x
- Leap → Tumbleweed or Slowroll
Legacy Leap 15.x → SLES 15.x migration is documented in SDB:How_to_migrate_to_SLE.
Noticeable changes in Leap
Leap 16.X requires x86_64-v2 CPU support. Systems that do not meet this requirement cannot run Leap 16.0. See x86_64-v2 for details. Consider using Tumbleweed if your hardware is not supported.
SELinux is now the default security framework for fresh Leap 16.0 installations. It is still possible to switch to AppArmor.
Most of the YaST stack has been removed (following SLES 16). Replacements include:
- Myrlyn – software management GUI
- Cockpit – system management interface
- opensuse-migration-tool – migration functionality
Distribution repositories
Compared to Leap 15, the following changes apply:
- Removal of update, backports, and SLE repositories
- Repositories are now split per architecture (smaller metadata, faster refresh)
Leap 16.0 uses Repository Index Service by default.
The openSUSE-repos package manages repository definitions automatically, eliminating the need for manual updates.
Repository definitions are available in: https://github.com/openSUSE/openSUSE-repos/blob/main/opensuse-leap16-repoindex.xml
This approach enables smoother migrations between openSUSE distributions.
Leap 16.1 release notes
The Leap 16.1 release notes are being reworked and are available at: https://doc.opensuse.org
Automatic upgrade using opensuse-migration-tool (preferred)
As part of Hackweek 24, the opensuse-migration-tool was introduced.
It supports:
- standard release upgrades
- cross-distribution migrations
See supported paths: https://github.com/openSUSE/opensuse-migration-tool#-supported-migration-paths
The tool:
- installs correct repository definitions for the target release
- updates repositories via the openSUSE-repos package
- performs the upgrade using zypper dup
Usage:
sudo zypper in opensuse-migration-tool # Available since Leap 15.6 sudo opensuse-migration-tool sudo reboot
Systems using btrfs can use snapper for rollback.
If you encounter issues or want to contribute: https://github.com/openSUSE/opensuse-migration-tool/issues
- Automatically configures correct repositories
- Disables obsolete and third-party repositories (with user confirmation)
- Supports switching from AppArmor to SELinux
Manual upgrade (only for experienced users)
Manual upgrades require adjusting repositories. This is handled automatically by opensuse-migration-tool. If skipped, the upgrade will fail.
Note on 3rd-party repositories
Third-party repositories (e.g. OBS, Packman, VLC) can cause upgrade issues.
This is especially common early in a release cycle, when repositories may be unavailable or incompatible.
Some repositories hardcode Leap versions instead of using $RELEASEVER, which can lead to dependency issues.
Disable all non-official repositories before upgrading:
zypper lr -u | egrep -v "/distribution/|/update/" zypper modifyrepo -d <REPO_ID>
Distribution repositories
As described above, Leap 16 no longer uses update, backports, or SLE repositories.
Before upgrading, remove or disable obsolete repositories to avoid errors.
Old Leap 15.6 repositories (without debug and source):
# | Alias | URI --+---------------------------+------------------------------------------------------------------ 1 | openSUSE:repo-non-oss | http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss 2 | openSUSE:repo-oss | http://cdn.opensuse.org/distribution/leap/15.6/repo/oss 3 | openSUSE:repo-openh264 | http://codecs.opensuse.org/openh264/openSUSE_Leap 4 | openSUSE:update-backports | http://cdn.opensuse.org/update/leap/15.6/backports 5 | openSUSE:update-non-oss | http://cdn.opensuse.org/update/leap/15.6/non-oss 6 | openSUSE:update-oss | http://cdn.opensuse.org/update/leap/15.6/oss 7 | openSUSE:update-sle | http://cdn.opensuse.org/update/leap/15.6/sle
New Leap 16.0 repositories (without debug and source):
# | Alias | URI --+---------------------------+------------------------------------------------------------------ 1 | openSUSE:repo-non-oss | http://cdn.opensuse.org/distribution/leap/16.1/repo/non-oss 2 | openSUSE:repo-oss | http://cdn.opensuse.org/distribution/leap/16.1/repo/oss 3 | openSUSE:repo-openh264 | http://codecs.opensuse.org/openh264/openSUSE_Leap
Manual upgrade with zypper dup
After adjusting repositories:
sudo zypper --releasever 16.1 dup sudo reboot
Manual upgrade using openSUSE-repos package
See: https://news.opensuse.org/2023/07/31/try-out-cdn-with-opensuse-repos
You can install repository definitions directly:
sudo zypper --releasever 16.1 install openSUSE-repos-Leap
Or download via osc:
zypper in osc osc getbinaries -d /tmp openSUSE:Leap:16.1 openSUSE-repos:openSUSE-repos-Leap standard x86_64 sudo zypper in /tmp/openSUSE-repos-Leap*.rpm
Then complete the upgrade:
sudo zypper --releasever 16.1 dup sudo reboot
