Mar 172011
 

Here’s a little followup to my previous post about how to upgrade to 11.4.

This one describes how to make the whole process even more risky. You have been warned.
It’s even possible to do this remotely through a ssh session. If you attempt to do that, do it from inside a screen session!

Actually, this first bit makes it a bit easier:

#!/bin/bash

repodir=/etc/zypp/repos.d
newrepodir=/etc/zypp/repos.d_11.4
old=11.3
new=11.4

mkdir -p ${newrepodir}

cd ${repodir}

for repofile in *repo; do
{
 echo -n converting ${repofile} to ${newrepodir}/$(echo ${repofile}|sed -e 's/11.3/11.4/g') ... ;
 cat "${repofile}" | sed -e 's/11.3/11.4/g' > "${newrepodir}/$(echo ${repofile}|sed -e 's/11.3/11.4/g')" ;
 echo done.
}

done;

This script creates a directory /etc/zypp/repos.d_11.4 with all your configured repos switched to their 11.4 counterparts.

After you run this script, all you have to do is move the old /etc/zypp/repos.d out of the way, rename the new one to /etc/zypp/repos.d and make sure that all the paths in the repo files exist. If they don’t, “zypp ref” is going to complain.

now, before you begin, run these two commands:

zypper cc --all
zypper ref

The first one clears all zypper cache folders, the second one refreshes all repositories (here’s where you’ll see if all paths are correct).
If you have a custom X11 setup (dualscreen or such), now would be the point to make a copy of your xorg.conf file.
Now you jump into the instructions in my previous post, right at #6.

  4 Responses to “Upgrading to 11.4, an even riskier way.”

  1. […] my wife’s and my own laptop to openSUSE 12.2 with zypper, following the same procedure as mentioned before. My experiences so […]

  2. […] usual, I’m doing a zypper live upgrade, but so far it’s still downloading packages, so I can’t say anything about 12.3 just […]

Leave a Reply

Optimization WordPress Plugins & Solutions by W3 EDGE
%d bloggers like this: