Here’s an easier way without needing to go through lame ass yast.
Online Migration with zypper¶
- When all requirements are met (see Section 7.5.1.1, “Requirementsâ€), the “products†needed for the online migration have been added to
/etc/products.d
. Get a list of these products by running the following command:
1zypper se -t product | grep -h -- "-migration" | cut -d'|' -f2
This command should at least returnSUSE_SLES-SP2-migration
. Depending on the scope of your installation, more products may be listed. - Install the migration products retrieved on the previous step with the command zypper in -t product
LIST_OF_PRODUCTS
, for example
1zypper in -t product SUSE_SLES-SP2-migration - Register the products installed in the previous step in order to get the respective update channels:
1suse_register -d 2 -L /root/.suse_register.log - Refresh repositories and services again:
1zypper ref -s - Check the list of repositories you can retrieve with zypper lr. At least the following repositories need to be Enabled:
SLES11-SP1-Pool
SLES11-SP1-Updates
SLES11-SP2-Core
SLES11-SP2-Updates
Depending on the scope of your installation, further repositories for add-on products or extensions need to be enabled.
If one of these repositories is not enabled (the
SP2
ones are not enabled by default when following this workflow), enable them with zypper modifyrepo –enableREPOSITORY ALIAS
, for example:1zypper modifyrepo --enable SLES11-SP2-Core SLES11-SP2-UpdatesIf your setup contains 3rd party repositories that may not be compatible with SP2, disable them with zypper modifyrepo –disable
REPOSITORY ALIAS
. - Now everything is in place to perform the distribution upgrade with zypper dup –from
REPO 1
–fromREPO 2
...
. Make sure to list all needed repositories with--from
, for example:1zypper dup --from SLES11-SP2-Core --from SLES11-SP2-UpdatesConfirm with y to start the upgrade.
- Upon completion of the distribution upgrade from the previous step, a Minimal Migration has been performed (a minimal set of packages has been updated to the latest SP2 level). Skip this step if you do not intend to do a Full Migration.
In order to do a Full Migration (updates all packages to the latest SP2 level), run the following command:
1zypper update -t patch - Now that the upgrade to SP2 has been completed, you need to re-register your product:
1suse_register -d 2 -L /root/.suse_register.log
- Last, reboot your system.
- Your system has been successfully updated to Service Pack 2.
Thanks for this! Today was a nice day 🙂
An easy and useful manual. Works fine!
Thanks!
Thanks, works fine.
But there is any way to upgrade SLES10SP4 to SLES11SP1 also?
greetz,
Jascha