How to in-place upgrade from Opensuse 12.2 to 12.3…

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, 12.2), here’s the latest for upgrading in-place from 12.2 to 12.3 (just be sure to run each of these lines one-at-a-time, not like a script):

# Check your repos. Look for anything custom, and note it for later if so...
zypper lr
# If you can, do a final update (if the repos still exist)...
zypper up
# Disable all the old repos...
zypper modifyrepo --all --disable
# Now set up the new repos for 12.3...
zypper addrepo --name "openSUSE-12.3-OSS" http://download.opensuse.org/distribution/12.3/repo/oss/ repo-12.3-oss
zypper addrepo --name "openSUSE-12.3-Non-OSS" http://download.opensuse.org/distribution/12.3/repo/non-oss/ repo-12.3-non-oss
zypper addrepo --check --refresh --name "openSUSE-12.3-Updates" http://download.opensuse.org/update/12.3/ repo-12.3-updates
zypper addrepo --check --refresh --name "openSUSE-12.3-Updates-Non-Oss" http://download.opensuse.org/update/12.3-non-oss/ repo-12.3-updates-non-oss
# Now do a refresh to update the local cache...
zypper ref
# Do a Distribution UPgrade, and I like to download all the packages first, before installation...
zypper dup --download "in-advance"
# Now, make a list of the old disabled repos; they might be a combination of 12.2 and 12.1 on some systems, if they weren't cleaned before...
zypper lr
# Remove all the old repos, for example...
zypper rr Updates-for-openSUSE-12.1-12.1-1.4 openSUSE-12.1-12.1-1.4 repo-12.2-non-oss repo-12.2-oss repo-12.2-update repo-update-non-oss repo-debug repo-debug-update repo-non-oss repo-oss repo-source
# One more check to be sure that only 12.3 repos remain...
zypper lr
# And reboot...
init 6
# You may want to fix the runlevel (see http://yourlinuxguy.com/?p=1007)...
ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
init 6

Thanks to the folks at Suse, and here’s the “long and detailed” guide that I adapted this from:
http://en.opensuse.org/SDB:System_upgrade

Cool!

Leave a Comment

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