Introduction
The openSUSE is a free and open-source RPM-based Linux distribution developed by the openSUSE project. It is a popular Linux distribution known for its stability, versatility, and ease of use. The openSUSE Project develops free software and tools and has two main Linux distributions named openSUSE Leap and openSUSE Tumbleweed.
In this article, we will explain how to upgrade OpenSUSE from 15.1 to 15.2
Upgrade OpenSuse
- Update the package index.
$ sudo zypper update
-
Reboot the machine and check the system information.
$ sudo reboot
$ sudo hostnamectlOutput
- Verify that the update repository is enabled and that it already exists.
$ sudo zypper repos --uri | grep -i update
Output
- Update the repository by running the following command to modify them.
$ sudo sed -i 's/15.1/${releasever}/g' /etc/zypp/repos.d/*.repo
- Refresh the openSUSE Leap 15.2 repositories.
$ sudo zypper --releasever=15.2 refresh
- Upgrade OpenSuse from 15.1 to 15,2.
(Note: The upgradation process will take more time to get completed)
–force-resolution is important to avoid answering the question during the upgradation process.$ sudo zypper --releasever=15.2 dup --force-resolution
- After the upgradation process is completed we need to reboot the machine.
$ sudo reboot
- Now verify the upgradation of OpenSUSE to 15.2
$ sudo hostnamectl
Output