How To Upgrade From openSUSE 12.3 To openSUSE 13.1
openSUSE 13.1 has been released two days before. Read the openSUSE 13.1 release notes here. If you already have installed openSUSE 12.3 version on your system and want to upgrade to the new 13.1 release? You’re on the right track. Here i will describe how to upgrade to openSUSE 13.1 from openSUSE 12.3 or older.
Please backup all important data prior to beginning the upgrade process. Be mindful that if your upgrade process is stopped unfortunately due to power failure or internet failure, you will be resulted with a unstable or broken system. So make sure that have an uninterrupted power supply and stable internet connection. Avoid upgrading from a poor internet connection to save time and effort. If you consider to upgrade multiple systems, then it would be better to download an ISO image and install them one by one.
To find the current running openSUSE version, enter the following command:
openSUSE 12.3 (i586) VERSION = 12.3 CODENAME = Dartmouth
Well, let us begin to upgrade from openSUSE 12.3 to 13.1. Disable all OBS repositories or any third party repositories first, perform the upgrade, then re-enable them.
First let us check whether the update repository exists and enabled. To do that enter the following command in Terminal:
zypper repos --uri
zypper modifyrepo --enable repo-update
If update repository doesn’t exist, you can add it using the following command:
zypper addrepo --check --refresh --name 'openSUSE-12.3-Update' http://download.opensuse.org/update/12.3/ repo-update
Now update your current version to latest packages using commands:
zypper refresh zypper update
It will take a while depending upon your Internet connection speed. Please be patient.
As i mentioned already, disable any third party or OBS repositories before proceed to upgrade.
To list the current available repositories, enter the following command.
# | Alias | Name | Enabled | Refresh --+---------------------------+------------------------------------+---------+-------- 1 | openSUSE-12.3-1.7 | openSUSE-12.3-1.7 | Yes | No 2 | repo-debug | openSUSE-12.3-Debug | No | Yes 3 | repo-debug-update | openSUSE-12.3-Update-Debug | No | Yes 4 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No | Yes 5 | repo-non-oss | openSUSE-12.3-Non-Oss | Yes | Yes 6 | repo-oss | openSUSE-12.3-Oss | Yes | Yes 7 | repo-source | openSUSE-12.3-Source | No | Yes 8 | repo-update | openSUSE-12.3-Update | Yes | Yes 9 | repo-update-non-oss | openSUSE-12.3-Update-Non-Oss | Yes | Yes
If you have any third party repository, then remove it using command:
zypper rr <alias>
You might want to backup your current repositories. To do that enter the following command to backup all your current repositories.
cp -Rv /etc/zypp/repos.d /etc/zypp/repos.d.bak
‘/etc/zypp/repos.d/’ -> ‘/etc/zypp/repos.bak/repos.d’ ‘/etc/zypp/repos.d/repo-update.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-update.repo’ ‘/etc/zypp/repos.d/repo-debug-update-non-oss.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-debug-update-non-oss.repo’ ‘/etc/zypp/repos.d/repo-source.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-source.repo’ ‘/etc/zypp/repos.d/repo-oss.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-oss.repo’ ‘/etc/zypp/repos.d/repo-update-non-oss.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-update-non-oss.repo’ ‘/etc/zypp/repos.d/repo-non-oss.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-non-oss.repo’ ‘/etc/zypp/repos.d/openSUSE-12.3-1.7.repo’ -> ‘/etc/zypp/repos.bak/repos.d/openSUSE-12.3-1.7.repo’ ‘/etc/zypp/repos.d/repo-debug-update.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-debug-update.repo’ ‘/etc/zypp/repos.d/repo-debug.repo’ -> ‘/etc/zypp/repos.bak/repos.d/repo-debug.repo’
Then change all repositories to new version. Here i am going to upgrade openSUSE 12.3 to 13.1, so the command will be:
sed -i 's/12\.3/13\.1/g' /etc/zypp/repos.d/*
Now check if all repositories changed to new version.
# | Alias | Name | Enabled | Refresh --+---------------------------+------------------------------------+---------+-------- 1 | openSUSE-13.1-1.7 | openSUSE-13.1-1.7 | Yes | No 2 | repo-debug | openSUSE-13.1-Debug | No | Yes 3 | repo-debug-update | openSUSE-13.1-Update-Debug | No | Yes 4 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No | Yes 5 | repo-non-oss | openSUSE-13.1-Non-Oss | Yes | Yes 6 | repo-oss | openSUSE-13.1-Oss | Yes | Yes 7 | repo-source | openSUSE-13.1-Source | No | Yes 8 | repo-update | openSUSE-13.1-Update | Yes | Yes 9 | repo-update-non-oss | openSUSE-13.1-Update-Non-Oss | Yes | Yes
As you see in the above output, all repositories has been changed to 13.1 version.
Note: If you are attempting to upgrade from 12.1 or older version, add the non-oss-update repository using the following command.
zypper ar -f http://download.opensuse.org/update/13.1-non-oss/ repo-update-non-oss
Now update the repository list with following command:
It is strongly recommended that you should run this upgrade inside tmux to protect the upgrade process in case anything should go wrong with the X session during the upgrade. tmux package is available in the main openSUSE repositories.
Install it using command:
zypper in tmux
Finally, it is time to upgrade. Enter the following command in Terminal to switch to tmux.
Enter the following command in terminal to start upgrading to 13.1.
As i mentioned above, to find the current version of openSUSE, run the following command:
Note: /etc/SuSE-release command is deprecated in openSUSE 13.1, so use /etc/os-release instead.
NAME=openSUSE VERSION="13.1 (Bottle)" VERSION_ID="13.1" PRETTY_NAME="openSUSE 13.1 (Bottle) (i586)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:13.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse"
Please be mindful that if upgrade process may terminate due to power or internet failure, then you’ll be end up with broken system. So be prepared and act accordingly.
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Install Fail2Ban On Ubuntu Server 13.04/13.10 : Introduction Fail2Ban is an intrusion prevention framework written in the Python programming l...0 comments |
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful : Running a business can be very stressful. You have to think about team collaboration, making sure th...0 comments |
- Install Crashplan backup tool in Linux : CashPlan is an automated backup solution that either uses the CrashPlan Central server or any other ...0 comments |
- install Git in Ubuntu : Git is a distributed revision control system with an emphasis on speed. Git was initially designed a...0 comments |
- Install Corosync and Pacemaker On CentOS 6.5 : I will show you in this tutorial how to install your first cluster Corosync and the Linux Cluster Ma...0 comments |
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
- New Games got Greenlit on Linux by Steam Today!
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .