How To Upgrade OpenSUSE 12.2 To 12.3 (Desktop & Server)

This guide shows how you can upgrade your OpenSUSE 12.2 desktop and server installations to OpenSUSE 12.3.


1 Preliminary Note

The upgrade can be done on the command line or via the YaST module Wagon (if you are on an OpenSUSE desktop). Since the Wagon method is less tested than the command line update, we will use the command line method here for both servers and desktops.


2 Installing the Latest Updates

Before we do the distribution upgrade, we install the latest updates for OpenSUSE 12.2. Open a terminal/command line window and run

zypper repos --uri

to check what repositories are used and enabled on the system. Make sure that the line that contains in the URI column reads Yes in the Enabled column (in this example the Alias is repo-update and the Name is openSUSE-12.2-Update, but these values can differ; the important column is the URI column):

server1:~ # zypper repos --uri
#  | Alias                     | Name                                                                   | Enabled | Refresh | URI
 1 | apache-third-party-12.2   | Third-party modules for the Apache HTTP server. (Apache_openSUSE_12.2) | Yes     | No      |
 2 | openSUSE-12.2-1.6         | openSUSE-12.2-1.6                                                      | Yes     | No      | cd:///?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376,/dev/sr0
 3 | repo-debug                | openSUSE-12.2-Debug                                                    | No      | Yes     |
 4 | repo-debug-update         | openSUSE-12.2-Update-Debug                                             | No      | Yes     |
 5 | repo-debug-update-non-oss | openSUSE-12.2-Update-Debug-Non-Oss                                     | No      | Yes     |
 6 | repo-non-oss              | openSUSE-12.2-Non-Oss                                                  | Yes     | Yes     |
 7 | repo-oss                  | openSUSE-12.2-Oss                                                      | Yes     | Yes     |
 8 | repo-source               | openSUSE-12.2-Source                                                   | No      | Yes     |
 9 | repo-update               | openSUSE-12.2-Update                                                   | Yes     | Yes     |
10 | repo-update-non-oss       | openSUSE-12.2-Update-Non-Oss                                           | Yes     | Yes     |
server1:~ #

(If the line reads No in the Enabled column, enable the repository as follows:

zypper modifyrepo --enable repo-update

repo-update refers to the Alias column; if the Alias column reads something like, for example, the command would be

zypper modifyrepo --enable

If there's no repository with the URI, then add the repository as follows:

zypper addrepo --check --name 'openSUSE-12.2-Update' repo-update


Now install the latest upfates:

zypper refresh
zypper update


3 Doing The Distribution Upgrade

Now that the latest updates are installed, disable all OpenSUSE 12.2 repositories...

zypper modifyrepo --all --disable

... and enable the OpenSUSE 12.3 repositories:

zypper addrepo --name "openSUSE-12.3 OSS" repo-12.3-oss
zypper addrepo --name "openSUSE-12.3 Non-OSS" repo-12.3-non-oss
zypper addrepo --name "openSUSE-12.3 Updates" repo-12.3-update

(If the zypper repos --uri command from chapter 2 displayed any third-party repositories, please check if these third-party repositories are available for OpenSUSE 12.3 as well; if they are, add them as follows:

zypper addrepo --name <name> <url> <alias>

For example, if you use the VirtualBox repository...

server1:~ # zypper repos --uri
# | Alias           | Name                              | Enabled | Refresh | URI
7 | virtualbox      | VirtualBox for openSUSE 11.4-12.2 | Yes     | Yes     |
server1:~ #

... enable the VirtualBox repository for OpenSUSE 12.3 as follows:

zypper addrepo --name "VirtualBox for openSUSE 12.3" virtualbox-12.3

At the time of this writing, there was no VirtualBox repository for OpenSUSE 12.3, but this is just an example of how you'd do it.

Use values for Name and Alias that are not in use yet.)

Now run the full distribution upgrade:

zypper ref
zypper dup

At the end, reboot the system...


... and enjoy your new OpenSUSE 12.3 system.


Share this page:

3 Comment(s)

Add comment

Please register in our forum first to comment.


By: Zawel

Hmm, I'm doing it that way:
# cd /etc/zypp/repos.d
# sed -e 's/12\.2/12.3/g' -i *.repo
# zypper clean --all
# zypper refresh
# zypper dup -l

By: Holger Lehmann

I agree to the above but I tend to always do multiple:

zypper dup -d -l

before running the final:

zypper dup -l

 This ensures a "full" cache of RPMs on the local harddisk. When the final command starts it probably has nothing to download anymore since all files are already there.

This minimizes the downtime and keeps you safe from errors like '404 File not foundÄ because someone upgraded a rpm on the webserver while you were upgrading.




By: jettor

it works at first time. i'm old unix user (from 2005) I used Sony Vaio Lap Top with Intel icore processor. The update processing it takes a long, long, long time (over 2 1/2) but at last i did reboot the system and after i had the 12.3 version with Dolphin 2.2 and KDE 4.10. Very Thanks for the steps and commands. Greets from Mexico City.