Home Home > 2009 > 10 > 01 > Updating in Place From openSUSE 11.1 to 11.2
Sign up | Login

Deprecation notice: openSUSE Lizards user blog platform is deprecated, and will remain read only for the time being. Learn more...

Updating in Place From openSUSE 11.1 to 11.2

October 1st, 2009 by

After running my laptop for some time already on openSUSE Factory, I decided to update my workstation now as well to openSUSE Factory – thus upgrading it to openSUSE 11.2 Milestone 8.

Instead of the “old” but still working way of burning a media, booting from it and upgrading my system, I did the “new” way of openSUSE 11.2: Updating in place with “zypper dup”.

The basic steps are documented also on the openSUSE Wiki:

  1. Adapt the repository list: I disabled all 11.1 repositories and enabled the openSUSE Factory OSS and NON-OSS reposositories using “yast repositories”
  2. I run “zypper refresh” to get the local metadata and repo contents
  3. I upgraded the package stack to the new version with “zypper in zypper”
  4. I updated the rest of the system with “zypper dup”
  5. After two hours updating – and while I could still use my system – the update was finished, I run “SuSEconfig”
  6. and finally rebooted into the 11.2 system.

The upgrade gave me the following information about what it needed to do (note I used quite some openSUSE Build Service repositories that had some higher build numbers than factory has – this explains the downgrades):

1310 packages to upgrade, 173 to downgrade, 174 new, 1 to reinstall, 35 to remove, 179  to change vendor, 12 to change arch.
Overall download size: 1.42 GiB. After the operation, additional 167.5 MiB will be used.
Continue? [y/n/?] (y): y

Now I’m blogging this from my 11.2 Milestone 8 system!

Btw if you update via zypper dup, I suggest to read Michael’s post about download polices, it is possible now to download everything first – and then update the packages in one go instead of the download one package, install it, download next package way.

Update 2009-10-07: Let’s be more explicit about step 1:

1a) First disable all old repositories, either in YaST or with zypper using “zypper mr –all -d”.

1b) Then add the new repositories, in case of factory, you can do this via the following commands:

zypper ar -f http://download.opensuse.org/update/11.2/ "openSUSE 11.2 Updates"
zypper ar -f http://download.opensuse.org/factory/repo/oss/ "openSUSE Factory Oss"
zypper ar -f http://download.opensuse.org/factory/repo/non-oss/ "openSUSE Factory Non-Oss"
zypper ar -f http://download.opensuse.org/factory/repo/debug/ "openSUSE Factory Debug"

Both comments and pings are currently closed.

20 Responses to “Updating in Place From openSUSE 11.1 to 11.2”

  1. Ulenrich

    should/could “zypper dup” be the integreation of now commands:

    zypper ref
    zypper in zypper
    zypper dup
    SuSEconfig

    So a less error prone 2 step upgrade 11.1 to 11.2 just:
    1.edit repos
    2.zypper dup

    As this would exactly be what the command name promises: zypper distribution-upgrade
    it should spare some future support issues…

  2. navatala

    clear as mud, maybe it’s me but I can say that ether this entry nor the content at http://en.opensuse.org/Upgrade/11.2#Implementation was of any use

  3. Andreas Jaeger

    Which steps are unclear?

  4. Andreas Jaeger

    Btw. zypper sl -d should give these repositories for an update to current factory:

    1 | openSUSE 11.2 Updates | openSUSE 11.2 Updates | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/11.2/
    2 | repo-debug | openSUSE Factory Debug | No | Yes | 99 | NONE | http://download.opensuse.org/factory/repo/oss/
    3 | repo-non-oss | openSUSE Factory Non-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/factory/repo/non-oss/
    4 | repo-oss | openSUSE Factory Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/factory/repo/oss/

  5. navatala

    you lost me after step 1

    Adapt the repository list: I disabled all 11.1 repositories and enabled the openSUSE Factory OSS and NON-OSS reposositories using “yast repositories”

    ok so diabling was easy but how does one enable “openSUSE Factory OSS and NON-OSS reposositories” if one doesn’t know have them or know where to get them, I believe you where aiming this entry at more experienced users than myself.

    • Andreas Jaeger

      Ok, I’ve explained step 1 better now. Does this help? Thanks for your feedback!

  6. cjk

    What’s with all those downgrades…

  7. Beineri

    Your “update” repository URLs are misleading now that Factory has been branched.
    And one should (re)select one’s desktop pattern to get eg OpenOffice_org-kde4 installed.

  8. JP

    I got a error during update.
    Command ¨rebuilddb¨ was been right action, then the update was been done successfully.

  9. JP

    excuse me: rpm –rebuilddb
    This error was came after 10-15 min after ¨zypper dup¨.

  10. Karl Eichwalder

    It is not recommended to “use the system” while running zypper dup. Esp. big packages with modules or plug-ins such as GNU Emacs or Firefox may fail during operation and data loss may happen (even if unlikely). Thus, using the system in a read-only fashion is probably possible, but be warned.

    For more information, see the manual (Reference Guide) ;-)

  11. Karl Eichwalder

    Grrrh, why behaves <code> like <pre> 🙁 ?

  12. Had some problems doing the CLI “zypper dup -d” method on an IBM R52 laptop which had been configured with a totally clean install of 11.1.

    After the update completed, there was no keyboard nor mouse functionality at runlevel 5; the keyboard worked fine at runlevel 3 though. Log reviews and Google led me to install the hal rpm from http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/i586/hal-0.5.13-20.2.i586.rpm, and after a reboot all was well.

    This issue was a little worrying to fix because I had to change Ethernet management from NetworkManager to Traditional (ifup) via YaST to be able to download the hal rpm (a USB stick with the rpm wasn’t seen by the system), and to do that YaST wanted to install additional packages — packages that were only available via downloading over Ethernet… I told YaST to skip those packages and fortunately eth0 successfully got a DHCP lease.

    The three other issues after the upgrade completed and hal was fixed are minor:

    First, the Sonar icon theme wasn’t installed, so when I went to select the new 11.2 default theme in GNOME, Control Panel threw a warning that things wouldn’t look right because Sonar icons weren’t installed. After installing the icons theme via YaST, the problem went away.

    Second, my hard disk started churning like crazy and running top showed that Beagle was indexing everything. Under 11.1, I had removed Beagle and just retained the Beagle libraries. The 11.2 upgrade installed Beagle because F-Spot now depends on Beagle, not just Beagle’s libraries. I had thought that Beagle was disabled by default under 11.2. Next is for me to figure out how to disable Beagle with it installed, instead of disabling it by removing it.

    Third, YaST’s Software Management module doesn’t seem to respect repo priority numbers any more. I added the OpenOffice.org STABLE repository and gave it a priority of 95, but YaST still offers the 11.2 base OpenOffice.org packages as the preferred versions.

    At the end of the day, for an upgrade with so many big under-the-hood changes, I was very impressed that I didn’t have more serious issues. GNOME 2.28 seems noticeably “zippier” than 2.24, and for all the work I know went in to this release, I just wanted to say “thanks! to everyone on the SuSE team and all of the other who contributed to this outstanding release.

    Hope that helps,
    Mark

    Reliable Networks
    Portland, ME

  13. Meije Oppenhuizen

    From now on, better follow the steps in the wiki. This one installs 11.3

  14. nice tutor bro..

  15. ggbrown

    I run OpenSUSE 11.1 as our backup server and it’s rock solid, but I have to admit…it’s processes like this that probably keep Linux (all distros) from being more popular.

    Brilliant people contribute to these these operating systems. Surely there can be a simpler way.

    G

  16. note that there is a typo in “zypper mr –all -d”
    right syntax is –all or -a

  17. okay, it wasn’t me nor it was author but it was this silly interface which eats double minuses there is “minus minus all”
    maybe code works:
    --all or -a

  18. fiffin

    I followed the instructions and now the /etc/SuSE-release reads:
    openSUSE 11.3 (x86_64)
    VERSION = 11.3

    Did I do something wrong? How can I downgrade to 11.2 ?

    I now can’t get OpenOffice to work. From the opensuse repos:
    % ooffice
    [Java framework] Error in function createSettingsDocument (elements.cxx).
    javaldx failed!
    The application cannot be started.
    The component manager is not available.
    terminate called after throwing an instance of ‘com::sun::star::uno::RuntimeException’

    If I use the OO from the OO.org website then I can’t get it
    to recognize a JRE via the Extra -> Options menu.

    Thanks!