How to in-place upgrade from Opensuse 12.1 to 12.2

Following along in my line of “Readers Digest” versions of the official Opensuse upgrades procedures, (here are a couple of my past ones: 11.1, 11.2, 11.4, 12.1) here’s the latest for upgrading in-place from 12.1 to 12.2:

zypper modifyrepo --all --disable
zypper addrepo --name "openSUSE-12.2 OSS" http://download.opensuse.org/distribution/12.2/repo/oss/ repo-12.2-oss
zypper addrepo --name "openSUSE-12.2 Non-OSS" http://download.opensuse.org/distribution/12.2/repo/non-oss/ repo-12.2-non-oss
zypper addrepo --refresh --name "openSUSE-12.2 Updates" http://download.opensuse.org/update/12.2/ repo-12.2-update
zypper ref
zypper dup --download "in-advance"

I like to use the “in-advance” setting so I can be sure all the packages are downloaded before the upgrade begins.  You just never know when there might be a power outage…

Of course, if you were using alternative repos, you might want to add those back too.  For instance, if you had the google-chrome repo, you’d enter this command to re-enable it:

zypper mr -e google-chrome

…you can find the rest of your disabled repos (from the first step above) with this command:

zypper sl

Afterward, you might want to remove your disabled 12.1-based repos, since you no longer need them. So based on the list from the command above, you can remove them in one command.  Here’s the command I used to remove all my 12.1 repos on a machine that was upgraded in-place like this in the past:

zypper rr repo-12.1-non-oss repo-12.1-oss repo-12.1-update

…and here’s the command I used on a machine that had OpenSUSE 12.1 installed fresh:

zypper rr Updates-for-openSUSE-12.1-12.1-1.4 openSUSE-12.1-12.1-1.4 repo-debug repo-debug-update repo-non-oss repo-source

…of course your repos may be different so make sure to check the list and remove only the old one that you don’t want.

And that’s it; enjoy your upgraded machine!

🙂

 

 

3 Comments

  1. Patti

    Hi – just wanted to say thank you for the posts of stuff we semi-newbies need 🙂
    Patricia

  2. Marc Lentwojt

    Thank you!

  3. Fernando Palmeiro

    Thank you, i has having a bad time with this.

Leave a Comment

Your email address will not be published. Required fields are marked *