» » How to Upgrade OpenSUSE 11.4 Desktop and Server to OpenSUSE 12.1


This guide shows how you can upgrade your OpenSUSE 11.4 desktop and server installations to OpenSUSE 12.1. 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.

Installing Latest Updates for OpenSUSE 11.4

Before we do the distribution upgrade, we install the latest updates for OpenSUSE 11.4. 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 http://download.opensuse.org/update/11.4/ in the URI column reads Yes in the Enabled column

If the line reads No in the Enabled column, enable the repository as follows:
$ zypper modifyrepo --enable Updates-for-openSUSE-11.4-11.4-0
repo-update refers to the Alias column; if the Alias column reads something like http-download.opensuse.org-82ba1b08, for example, the command would be
$ zypper modifyrepo --enable http-download.opensuse.org-82ba1b08
If there's no repository with the URI http://download.opensuse.org/update/11.4/, then add the repository as follows:
$ zypper addrepo --check --name 'openSUSE-11.4-Update' http://download.opensuse.org/update/11.4/ repo-update
Now install the latest updates: 
$ zypper refresh
$ zypper update
Now Upgrading the OpenSUSE 11.4 to OpenSUSE 12.1

Now that the latest updates are installed, disable all OpenSUSE 11.4 repositories...
$ zypper modifyrepo --all --disable
... and enable the OpenSUSE 12.1 repositories:
$ zypper addrepo --name "openSUSE-12.1 OSS" http://download.opensuse.org /distribution/12.1/repo/oss/ repo-12.1-oss
$ zypper addrepo --name "openSUSE-12.1 Non-OSS" http://download.opensuse.org/distribution/12.1/repo/non-oss/ repo-12.1-non-oss
$ zypper addrepo --name "openSUSE-12.1 Updates" http://download.opensuse.org/update/12.1/ repo-12.1-update
(If the zypper repos --uri command displayed any third-party repositories, please check if these third-party repositories are available for OpenSUSE 12.1 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 | Yes     | Yes     | http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4
server1:~ #

... enable the VirtualBox repository for OpenSUSE 12.1 as follows:
$ zypper addrepo --name "VirtualBox for openSUSE 12.1" http://download.virtualbox.org/virtualbox/rpm/opensuse/12.1 virtualbox-12.1
At the time of this writing, there was no VirtualBox repository for OpenSUSE 12.1, 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...
$ reboot
... and enjoy your new OpenSUSE 12.1 system.
External Downloading Links

About Ashwani Kumar Luhaniwal

Hi there! I am Hung Duy and I am a true enthusiast in the areas of SEO and web design. In my personal life I spend time on photography, mountain climbing, snorkeling and dirt bike riding.
Newer Post
Older Post

No comments:

Leave a Reply