Upgrade

From openSUSE

(Difference between revisions)
Revision as of 19:52, 6 November 2009
Ammler (Talk | contribs)
Refresh package databases - libcurl needed, see talk
� Previous diff
Revision as of 20:18, 6 November 2009
Ammler (Talk | contribs)
Only when upgrading from 10.3: Upgrade libcurl now - libldap
Next diff →
Line 82: Line 82:
{{VersionNote|x86 (32-bit)|<nowiki>rpm -Uvh 'http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/libcurl4-7.19.0-11.1.i586.rpm' {{VersionNote|x86 (32-bit)|<nowiki>rpm -Uvh 'http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/libcurl4-7.19.0-11.1.i586.rpm'
</nowiki>}} </nowiki>}}
 +
 +You might need to resolve other dependencies like libldap, just do it the same way...
== Refresh package databases == == Refresh package databases ==

Revision as of 20:18, 6 November 2009

This method is unsupported for upgrades to releases 10.3, 11.0, and 11.1. The official method of upgrading to a new release is by using the latest DVD. To start the upgrade you boot from the DVD and start installation, at some point you will be prompted to either do a New Installation or Upgrade, at that point you select Upgrade and continue with the setup.


Contents

Before you begin

Make sure you backup your Home Backup

Distribution Upgrade with zypper

Valid for upgrading 10.3 to 11.0 & 11.0 to 11.1


This guide shows the steps of using zypper to do a live distribution upgrade of openSUSE. Doing a live upgrade has many advantages but at the same time a major disadvantage. Among the advantages are:

  • You only download the packages that need to be upgraded, thus wasting a lot less bandwidth.
  • During the upgrade you can still use your workstation, the only downtime will be the reboot after the upgrade.
  • It's cool.

The disadvantage is that if during the upgrade for any reason interrupt the process and can't continue, you are left with a broken installation. (Depends on when the process stopped of course)

Become root

For this process to work you need to be super user (root). To achieve that open a terminal and type

su -


You will be asked for the super user's password. After entering it the command prompt will look like that (notice the # in the end, instead of a $):

hostname:~#


Now you can follow the rest of the guide.

Install zypper using YaST

If in a console zyp <tab> <tab> don't give zypper, zypper is not installed. Use YaST to install it. You have to install the 11.0 zypper first, or you wont be able to install 11.1 one.

Removing old repositories

You first need to remove all the old repositories. The following command creates a backup of your existing repositories and makes them invisible to the system:

mv /etc/zypp/repos.d /etc/zypp/repos.d-backup

Adding the OSS repository

Now you need to add the repository of the version you are upgrading to

Image:susemini.png
Version:
11.0
zypper ar http://download.opensuse.org/distribution/11.0/repo/oss openSUSE110
Image:susemini.png
Version:
11.1
zypper ar http://download.opensuse.org/distribution/11.1/repo/oss openSUSE111


Only when upgrading from 10.3: Install the new RPM

If you are on 10.3 you have to install the new RPM first

Image:susemini.png
Version:
x86_64 (64-bit)
rpm -Uhv 'http://download.opensuse.org/distribution/11.0/repo/oss/suse/x86_64/rpm-4.4.2-199.1.x86_64.rpm'
Image:susemini.png
Version:
x86 (32-bit)
rpm -Uhv 'http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/rpm-4.4.2-199.1.i586.rpm'


Upgrade zypper

Next you have to install the latest zypper (which will be installed from the OSS repo you added before)

zypper in zypper


Add more repositories

Next Add the Official non OSS repo, and optionally packman

Image:susemini.png
Version:
11.0
zypper ar http://download.opensuse.org/distribution/11.0/repo/non-oss openSUSE110_NonOSS

zypper ar http://packman.iu-bremen.de/suse/11.0/ packman

Image:susemini.png
Version:
11.1
zypper ar http://download.opensuse.org/distribution/11.1/repo/non-oss openSUSE111_NonOSS

zypper ar http://packman.iu-bremen.de/suse/11.1/ packman


Only when upgrading from 10.3: Upgrade libcurl now

If you are on 10.3 you have to install the new RPM first, else you get the following error: "Error occurred while setting download (curl) options ... "

Image:susemini.png
Version:
x86_64 (64-bit)
rpm -Uvh 'http://download.opensuse.org/distribution/11.1/repo/oss/suse/x86_64/libcurl4-7.19.0-11.1.x86_64.rpm'
Image:susemini.png
Version:
x86 (32-bit)
rpm -Uvh 'http://download.opensuse.org/distribution/11.1/repo/oss/suse/i586/libcurl4-7.19.0-11.1.i586.rpm'

You might need to resolve other dependencies like libldap, just do it the same way...

Refresh package databases

Next you need to update the package database

zypper ref

Begin the distribution upgrade

Finally you need to download and upgrade all of the new packages

zypper dup


Reboot

The upgrade process will take from a few minutes to a few hours, depending on your network connection, availability of the mirror, and your computer's speed. After this process is finished, you must reboot.

reboot

Post Upgrade Notes

After upgrading you should go and add at least the updates repository. To do that (as root user, see the beginning of this article for information on how to become root):

Image:susemini.png
Version:
11.0
zypper ar http://download.opensuse.org/update/11.0/ openSUSE-11.0-Updates
Image:susemini.png
Version:
11.1
zypper ar http://download.opensuse.org/update/11.1/ openSUSE-11.1-Updates


Then refresh the package database by calling

zypper ref

Note: you can also add more repositories, especially the one of your Graphics Card manufacturer (if it exists).


For users upgrading from 11.0 to 11.1

If you have problems with the updater applet in KDE (the thing next to the clock notifying you if new updates are available), check the following things:

  • Make sure the update repository is called "openSUSE-11.1-Updates", otherwise the update applet will not recognize it. This means there needs to be a file /etc/zypp/repos.d/openSUSE-11.1-Updates.repo which contains this first line: [openSUSE-11.1-Updates]. If your update repository has a different name, rename the .repo file and adapt the repository name in the first line. This is bug #448183 and will not be fixed before openSUSE 11.2.
  • Make sure you have the package PolicyKit-kde installed. If this is missing, you'll get an error like this one: "User is not permitted: org.freedesktop.packagekit.system-update". To solve this, install PolicyKit-kde (e.g. using Yast) and make sure it is running.