openSUSE Leap 42.2 is not supported anymore. I wrote this guide because I didn't found any official information about updating the openSUSE WSL (Windows Subsystem for Linux) on Windows. Within a native distribution the openSUSE team strongly recommends the update to 42.3 or the even newer Version 15.0 that is available since 25.05.2018. I share with you this article of my exercise and want to give you a small walkthrough with Win10.
- For sure I assume that you installed already openSUSE on your Win10 system as a WSL. If not please see my other article.
- Start your WSL (e.g. with typing bash.exe on your Win10 command prompt)
Make yourself familiar with the zypper tool that is the central tool for updating your distribution. There is also a good page on the official openSUSE site (see "Further Information"-section)
||Shows all repositories including links|
||Refresh the repository informations|
||Update all packages|
Distribution Upgrade Process
The update is quite easy and the Guideline on the openSUSE wiki can be adapted to a certain degree from my experience. The steps are done as follows and based on the WSL package for openSUSE delivered in Windows Store:
- Find out your installed version (to make sure this step ist still necessary or Windows store was updated in the meantime :)). Version_ID should show "42.2" or "42.3" - depends if you have upgrade with my former version of this article.
- Make sure your packages are at latest stage on Version 42.2 or 42.3
sudo zypper ref
sudo zypper up
- Deactivate all old repositories because you add the new ones in the next steps
zypper mr -adR
- Add the new repositories to your configuration. An upgrade from 42.2 to directly 15.0 should be possible, too.
Add the 15.0 repositories to your configuration
zypper ar -n "openSUSE-15.0 OSS" http://download.opensuse.org/distribution/leap/15.0/repo/oss/ repo-15.0-oss
zypper ar -f -n "openSUSE-15.0 Updates OSS" http://download.opensuse.org/update/leap/15.0/oss/ repo-15.0-update-oss
- Update your Distribution from to Leap 15.0
zypper clean -a
- Check if your Distribution is on the right Version - Version_ID should show now "15.0"
You're done :)!
Official Distribution Upgrade Information: https://de.opensuse.org/SDB:Distribution-Upgrade
Zypper Documentation: https://en.opensuse.org/SDB:Zypper_usage
Credits for picture:
Picture by Richard Tuner - Thanks for permission to use picture, buddy! (Twitter)
Thx. Still lil information on the net for this. worked perfectly...