openSUSE Project announced the release of the next minor version of Leap, openSUSE Leap 42.2 earlier today Nov 16, 2016. openSUSE Leap 42.2 is powered by the Linux4.4 Long-Term-Support (LTS) kernel and shipped with all other latest software updates, such as KDE Plasma 5.8 Long-Term-Support, Qt 5.6 and Frameworks 5.26, Docker 1.12, gtk 3.20, gcc 4.8.5, 5.3.1 and 6.1.1, VirtualBox 5.0.24, Samba 4.4.2, systemd 228 & GNOME 3.20.
As you may aware of this, since Leap, openSUSE has moved its codebase to SUSE Linux Enterprise (SLE) to offer Enterprise level operating system as FREE, like Debian &
CentOS.
OpenSUSE Leap 42.2 is based on SUSE Linux Enterprise (SLE) 12 with Service Pack (SP) 2. All the packages are coming from SLE SP 2, which are well tested at their end that offers additional level of stability to Leap which is unmatched by other Linux distributions.
So you can blindly choose openSUSE Leap 42.2 as your primary OS among others (Especially, if you want to give a try apart from Ubuntu based system). It’s very simply and safe choice that offers Linux professionals a user-friendly desktop and feature-rich server environment.
Included 1400+ packages into Leap 42.2 which is 17% more packages than 42.1. openSUSE Leap 42.2 is the first Leap release to offer a Server Edition, you can see the option during the installation. With no graphical environment. You can install the server either full-featured textmode installer or graphical installer.
Read more about release notes openSUSE Leap 42.2
[ac-box color=”yellow” icon=”fa-lightbulb-o”]
1) Take backup of your important data before upgrading, If anything goes wrong we can re install freshly and restore the data.
2) The upgrade will take time based on your internet connection and application which you have installed.
3) As per openSUSU website update, there is no support for upgrade from 13.1 -> 42.2. It seem’s, if you are in older version you will not avail upgrade. so better upgrade your system to 13.2 then try to upgrade to 42.2 Leap.
[/ac-box]
Checking current version of my Desktop
Use the below command to check which version of Desktop is currently running.
$ cat /etc/*-release
NAME="openSUSE Leap"
VERSION="42.1"
VERSION_ID="42.1"
PRETTY_NAME="openSUSE Leap 42.1 (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:42.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
openSUSE 42.1 (x86_64)
VERSION = 42.1
CODENAME = Malachite
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead
Update your current system
Make sure your current system updated to latest packages, i mean upto date. Anyhow, cross check by running below commands.
$ sudo zypper ref $ sudo zypper up
Disable third party repositories
Before proceeding openSUSE Leap 42.2 upgrade, make sure you should disable all OBS repositories or any third party repositories before perform the upgrade, later we can re-enable it.
$ sudo zypper repos
$ sudo zypper mr -d [repo number]
Add/Enable update repository
Use the below command to check if the update repository already exists and enabled.
$ sudo zypper repos --uri
| Alias | Name | Enabled | GPG Check | Refresh | URI
---+---------------------------------+-----------------------------------------------+---------+-----------+---------+-------------------------------------------------------------------------------
1 | bintray--aluxian-rpm | bintray--aluxian-rpm | No | ---- | No | http://dl.bintray.com/aluxian/rpm
2 | download.opensuse.org-non-oss | Main Repository (NON-OSS) | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/
3 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/non-oss/
4 | download.opensuse.org-oss | Main Repository (OSS) | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/oss/
5 | download.opensuse.org-oss_1 | Main Update Repository | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/oss
6 | home_Horst3180 | Horst3180's Home Project (openSUSE_Leap_42.1) | No | ---- | No | http://download.opensuse.org/repositories/home:/Horst3180/openSUSE_Leap_42.1/
7 | home_snwh_moka | Moka Project (openSUSE_Leap_42.1) | No | ---- | No | http://download.opensuse.org/repositories/home:/snwh:/moka/openSUSE_Leap_42.1/
8 | openSUSE-42.1-0 | openSUSE-42.1-0 | Yes | ---- | Yes | cd:///?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376
9 | repo-debug | openSUSE-Leap-42.1-Debug | No | ---- | Yes | http://download.opensuse.org/debug/distribution/leap/42.1/repo/oss/
10 | repo-debug-non-oss | openSUSE-Leap-42.1-Debug-Non-Oss | No | ---- | Yes | http://download.opensuse.org/debug/distribution/leap/42.1/repo/non-oss/
11 | repo-debug-update | openSUSE-Leap-42.1-Update-Debug | No | ---- | Yes | http://download.opensuse.org/debug/update/leap/42.1/oss
12 | repo-debug-update-non-oss | openSUSE-Leap-42.1-Update-Debug-Non-Oss | No | ---- | Yes | http://download.opensuse.org/debug/update/leap/42.1/non-oss/
13 | repo-source | openSUSE-Leap-42.1-Source | No | ---- | Yes | http://download.opensuse.org/source/distribution/leap/42.1/repo/oss/
14 | repo-update | openSUSE-Leap-42.1-Update | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.1/oss/
The above output clearly shows, the openSUSE-Leap-42.1-Update repository is available. If column Enabled says No, enable it by issuing the below command. where ‘repo-update’ is the name of the update repository.
$ sudo zypper modifyrepo --enable repo-update
If update repository is not available like, (You don’t have openSUSE-Leap-42.1-Update url in URI column), use the below command to add it.
$ sudo zypper addrepo --check --refresh --name 'openSUSE-Leap-42.1-Update' http://download.opensuse.org/update/leap/42.1/oss/ repo-update
Everything is fine now, So Update system to the latest packages
$ sudo zypper ref $ sudo zypper up
After system update, restart your system to take effort.
Update openSUSE Leap 42.2 repo
Do the below steps before start upgrading to latest version.
[Backup current repos folder] $ sudo cp -Rv /etc/zypp/repos.d /etc/zypp/repos.d.Old [Modify repositories to new version] $ sudo sed -i 's/42\.1/42\.2/g' /etc/zypp/repos.d/* [If you are upgrading from 12.1 or older, add non-oss-update repo] $ sudo zypper ar -f http://download.opensuse.org/update/leap/42.2/non-oss/ repo-update-non-oss [Refresh new repositories] $ sudo zypper ref | Alias | Name | Enabled | GPG Check | Refresh | URI ---+---------------------------------+-----------------------------------------------+---------+-----------+---------+------------------------------------------------------------------------------- 1 | bintray--aluxian-rpm | bintray--aluxian-rpm | No | ---- | No | http://dl.bintray.com/aluxian/rpm 2 | download.opensuse.org-non-oss | Main Repository (NON-OSS) | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.2/repo/non-oss/ 3 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.2/non-oss/ 4 | download.opensuse.org-oss | Main Repository (OSS) | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/42.2/repo/oss/ 5 | download.opensuse.org-oss_1 | Main Update Repository | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.2/oss 6 | home_Horst3180 | Horst3180's Home Project (openSUSE_Leap_42.2) | No | ---- | No | http://download.opensuse.org/repositories/home:/Horst3180/openSUSE_Leap_42.2/ 7 | home_snwh_moka | Moka Project (openSUSE_Leap_42.2) | No | ---- | No | http://download.opensuse.org/repositories/home:/snwh:/moka/openSUSE_Leap_42.2/ 8 | openSUSE-42.2-0 | openSUSE-42.2-0 | Yes | ---- | Yes | cd:///?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 9 | repo-debug | openSUSE-Leap-42.2-Debug | No | ---- | Yes | http://download.opensuse.org/debug/distribution/leap/42.2/repo/oss/ 10 | repo-debug-non-oss | openSUSE-Leap-42.2-Debug-Non-Oss | No | ---- | Yes | http://download.opensuse.org/debug/distribution/leap/42.2/repo/non-oss/ 11 | repo-debug-update | openSUSE-Leap-42.2-Update-Debug | No | ---- | Yes | http://download.opensuse.org/debug/update/leap/42.2/oss 12 | repo-debug-update-non-oss | openSUSE-Leap-42.2-Update-Debug-Non-Oss | No | ---- | Yes | http://download.opensuse.org/debug/update/leap/42.2/non-oss/ 13 | repo-source | openSUSE-Leap-42.2-Source | No | ---- | Yes | http://download.opensuse.org/source/distribution/leap/42.2/repo/oss/ 14 | repo-update | openSUSE-Leap-42.2-Update | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/42.2/oss/
It’s time to run upgrade from openSUSE Leap 42.1 to openSUSE Leap 42.2. I’m going ahead.
Run the upgrade
Use the below command to do full distribution upgrade. You need to agree license agreement and some times you need to hit Y to install particular packages. So keep on EYE
with upgrading process because It will ask you to accept license agreement.
[download all required packages and install] $ sudo zypper dup [To download all packages in advance] $ sudo zypper dup --download in-advance
Checking upgraded version of my Desktop
Use the below command to check which version of Desktop is currently running.
$ cat /etc/*-release
If your facing any issue while upgrading, i’m here to help you, please update your issue in our comment section to get update. Play some times with openSUSE Leap 42.2 and update your feedback into our comment section, Please stay tune with 2daygeek for Latest LINUX TIPS & TRICKS….Cool..)
I have a question?
Why do I have to duplicate openSUSE-Leap-42.1-Update repository?
openSUSE-Leap-42.2-Update :http://download.opensuse.org/update/leap/42.1/oss
Main Update Repository : http://download.opensuse.org/update/leap/42.1/oss
If something goes wrong, we can move openSUSE Leap 42.1 repository to rollback the system.
Just a stupid question: Can I enable all repositories afterwards again ?
Sure ? then refresh the repository once.
zypper ref
What wordpress plugin you use for commands?
Thank you Sascha, corrected the command.
Hi Magesh,
very good post – upgrade works perfectly!
I’ve found one error in your sed statement, it should be:
sed -i 's/42.1/42.2/g' /etc/zypp/repos.d/*