If youโre using openSUSE Leap 15.5 and considering upgrading to the latest and greatest version, Leap 15.6, youโre in the right place. With openSUSEโs robust platform, the process is straightforward and a breeze.
This article is designed to guide you through the seamless upgrade process from Leap 15.5 to Leap 15.6. Weโll walk you through every step, from preparation to execution, ensuring you can make the transition smoothly and confidently.
Step 1: Take System Backup
First, letโs ensure all your important data is safe. Before doing anything else, we strongly recommend a full system backup of your openSUSE system. Thus, if something goes wrong, you can restore it with all the vital data to its previous state.
However, if you do not feel like taking the above approach, you can instead use a command like the one shown below, which will archive all of the more critical directories and their contents in a tar.gz archive.
sudo tar czf /leap-data.tar.gz \
--exclude=/leap-data.tar.gz \
--exclude=/dev \
--exclude=/mnt \
--exclude=/proc \
--exclude=/sys \
--exclude=/tmp \
--exclude=/media \
--exclude=/lost+found \
/
Code language: Bash (bash)
Feel free to add more โโexclude=โ parameters if needed. Finally, the command creates a backup of all files in the โleap-data.tar.gzโ file located on the root partition (/), which you should ideally transfer to another computer or drive, for example, using the SCP command.
Step 2: Check Repositories
The next step is to ensure that the following three update repositories already exist on your openSUSE Leap 15.4 system and are enabled:
- repo-backports-update
- repo-sle-update
- repo-update
You can do it by performing the following:
zypper repos -u
If, for any reason, the โEnabledโ column is set to โNo,โ run the command below, where โrepo-nameโ is the name of the repository to enable it.
sudo zypper modifyrepo --enable repo-name
Code language: Bash (bash)
Step 3: Update All Software
Ensure you have a fully updated Leap 15.5 system. In the terminal app, type the following command:
sudo zypper refresh
sudo zypper update
Code language: Bash (bash)
If any updates are available, install them, then reboot. The result should be a fully up-to-date system with no packages waiting to be updated. Here is our openSUSE Leap 15.5 box before migrating toย Leap 15.6.
You can check the current OS version by running:
cat /etc/os-release
Code language: Bash (bash)
Step 4: Refresh Repositories to Leap 15.6
First, check if your Leap repos defined in โ/etc/zypp/repos.d/โ are using the โ$releaseverโ (i.e., are not hard-coded with a particular Leap version number, for example, “15.5“) variable already in the URIs.
grep baseurl /etc/zypp/repos.d/*.repo
Code language: Bash (bash)
Then, refresh all repositories to the new Leapโs 15.6 ones.
sudo zypper --releasever=15.6 refresh
You should get a message that all repositories have been successfully refreshed.
Step 5: Upgrade to openSUSE Leap 15.6 from Leap 15.5
It is time to start the upgrade, which will migrate our system from openSUSE Leap 15.5 to Leap 15.6. However, one very crucial clarification is required beforehand.
It is strongly recommended that you run the upgrade outside the X-window graphical mode. Why? It is simpleโif your X session crashes during the update, causing the upgrade to fail, you will end up with a broken system.
In light of this, we advise switching to the virtual terminal using the โCtrl+Alt+F3โ keyboard shortcut, logging in, and running the bellow command, which will start the upgrade process.
sudo zypper --releasever=15.6 dup --download-in-advance
Code language: Bash (bash)
Accept typing โyโ on the message informing you of the packages to be installed.
The upgrade to openSUSE Leap 15.6 will start with downloading and applying the updates. Now is the perfect time to grab a coffee and settle in because the process will take some time, depending on your internet connection speed, hardware capabilities, and the number of updated packages.
Once the process is completed, youโll be offered to reboot the system. Okay, the moment of truth!
sudo reboot
Code language: Bash (bash)
Wait for the system to reboot. It will take a bit longer than usual. Finally, the bootloader will greet you, indicating you are now running openSUSE Leap 15.6.
At this point, itโs time to give yourself a big pat on the back because, just like that, youโve successfully transitioned your system from openSUSE Leap 15.5 to 15.6. Iโm sending you big congratulations, too. Login and enjoy!
Conclusion
Upgrading from openSUSE Leap 15.5 to 15.6 is straightforward. By following our detailed guide, you can ensure a smooth transition. So, congratulations! Your system is now more robust and secure, ready to meet current and future demands.
For additional help or useful information, we recommend checking the official openSUSE documentation. Thanks for using our guide! Feel free to share your thoughts in the comments section below.