spacer Wiki > SDB:System upgrade
Sign up | Login

Cancel

Navigation

  • Project
  • Distribution
  • Support
  • Contact
  • Site map

Help

  • Wiki
  • Create a Page
  • Change a Page
  • Find a Page

Toolbox

  • What links here
  • Related changes
  • Special pages

Sponsors

spacer

In other languages

  • Deutsch
  • Français
  • Italiano
  • 日本語
  • Русский
  • 中文
  • ‪中文(台灣)‬
  • Nederlands
  • SDB
  • Discussion
  • View source
  • History
(Redirected from Upgrade)
spacer spacer

SDB:System upgrade

tagline: From openSUSE

Documentation > How to migrate to a new openSUSE version
System upgrade - Installation help - How to migrate from Windows
This guide shows how to use Zypper to do a live distribution upgrade of openSUSE.
Tested on openSUSE Recommended articles Related articles
spacer
  • 12.2
  • 12.1
  • 11.4
  • 11.3
  • 11.2

spacer
  • Zypper usage
  • YaST Online Update
spacer
  • YaST Software Management
Version: 11.2+Starting with openSUSE 11.2, a live upgrade from the prior version is officially supported. This allows to perform a complete operating system upgrade in place, without reloading everything from scratch.

Contents

  • 1 Summary
  • 2 Supported scenarios
  • 3 Prepare your installation
    • 3.1 Command line
      • 3.1.1 1. Check if the update repository already exists and is enabled.
      • 3.1.2 2. Add update-repository.
      • 3.1.3 3. Update system to the latest packages.
    • 3.2 Graphical tool
  • 4 Running the Upgrade
    • 4.1 Command line
  • 5 Links to other openSUSE or SUSE projects
    • 5.1 The openSUSE Forums

[edit] Summary

This page explains how to run a tool or a series of command line steps to upgrade your system to the latest version of openSUSE.

Doing a live-upgrade has advantages but on the flip-side, there are major disadvantages.

Among the advantages are:

  • You only download the packages that need to be upgraded, thus using a lot less bandwidth.
  • During the upgrade you can still use your workstation (even if this is not recommended); the only downtime will be the reboot after the upgrade.
  • You do not have to use a DVD, nor do you need a DVD writer. (You also could boot from the net or a USB key, and install the rest from the net...)

The disadvantages:

  • If for any reason the upgrade is interrupted (e.g: power outages, network disconnect) and the process can't continue, you could be left with a broken system (that depends on where the process stopped of course).
  • If you have multiple systems to upgrade, you use bandwidth each time, so it might be better to download an ISO image.

Other possibility: Offline upgrade, aka traditional or DVD upgrade. For more information, read offline upgrade.


[edit] Supported scenarios

Be aware that in principle, this upgrade process is considered “best effort” only. This means that due to some third-party packages and the myriad of possible configurations, it is possible for some combinations to cause failure upon upgrade.

It is very important that all important data is backed up prior to beginning the upgrade process.


[edit] Prepare your installation

The supported starting point is the last openSUSE release with all current updates applied. This does not include arbitrary openSUSE Build Service repositories you may have added. We recommend that you disable all OBS repositories first, perform the upgrade, then reenable them. The following steps show you how to update your openSUSE distribution to the current packages before upgrading to the next version.

[edit] Command line

[edit] 1. Check if the update repository already exists and is enabled.

zypper repos --uri

Check if download.opensuse.org/update/12.1/ (replace 12.1 with your version) exists in one of the URI column values, and Yes in column Enabled, like the example below,

#  | Alias           | Name            | Enabled | Refresh | URI
---+-----------------+-----------------+---------+---------+---------------------------------------
1  | repo-update     | repo-update     | Yes     | Yes     | download.opensuse.org/update/12.1/

If column Enabled says No, enable it by issuing this command,

zypper modifyrepo --enable repo-update
where ‘repo-update’ is the name of the update repository.
If it exists and has been enabled, continue to step 3.

[edit] 2. Add update-repository.

zypper addrepo --check --refresh --name 'openSUSE-12.1-Update' download.opensuse.org/update/12.1/ repo-update
Replace 12.1 above with your current openSUSE version

[edit] 3. Update system to the latest packages.

zypper refresh
zypper update

For more information, read Zypper Usage.

[edit] Graphical tool

See YaST Online Update.


[edit] Running the Upgrade

The following steps will show you how to upgrade your openSUSE distribution to the following release (eg. 12.1 -> 12.2).

[edit] Command line

Using for example the update from 12.1 -> 12.2 here:

  • Disable all existing repositories that pre-date openSUSE 12.2,
zypper modifyrepo --all --disable
  • Add the new openSUSE 12.2 repositories,
zypper addrepo --name "openSUSE-12.2-OSS" download.opensuse.org/distribution/12.2/repo/oss/ repo-12.2-oss
zypper addrepo --name "openSUSE-12.2-Non-Oss" download.opensuse.org/distribution/12.2/repo/non-oss/ repo-12.2-non-oss
zypper addrepo --refresh --name "openSUSE-12.2 Update-Oss" download.opensuse.org/update/12.2/ repo-12.2-update
zypper addrepo --refresh --name "openSUSE-12.2-Update-Non-Oss" download.opensuse.org/update/12.2-non-oss/ repo-12.2-non-oss-update
The last argument sets an alias (a shorthand), you can also choose another alias for the new repositories in the above command.
  • Search for updated openSUSE 12.2 compatible third-party repositories that you used before and add them.
Warning: Use with caution. Using third-party repositories could increase the chances that the upgrade will not complete correctly.
zypper addrepo --name <name> <url> <alias>

Or, if you have URL of a .repo file:

zypper ar <url.repo>
  • Now execute the full distribution upgrade. It is strongly recommended that you run this inside GNU screen or tmux to protect the upgrade process in case anything should go wrong with the X session during the upgrade. Packages for both screen and tmux are available in the main openSUSE repositories.
zypper ref
zypper dup
With the above command zypper will download the required packages when it installs them. To download all packages in advance, use:
zypper dup --download "in-advance"

If you did the above dist upgrade before the official release date (eg. 2012-09-05 for 12.2), you may have installed a Release Candidate (RC) or milestone version and will need to repeat the final zypper dup step now to receive the final release.

In addition, zypper dup can be run from time to time to ensure you have the latest available packages from the various repositories that you have enabled. YOU (Yast Online Update) only addresses security updates from the official repositories.


[edit] Links to other openSUSE or SUSE projects

[edit] The openSUSE Forums

  • Threads tagged with zypper dup or upgrade
Retrieved from "en.opensuse.org/SDB:System_upgrade"

  • SDB
  • Discussion
  • View source
  • History
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.