Upgrading from 13.1 to 13.2 using Zypper

A while ago one of the regular respondents gave me a link to a thread which gave the step by step process of upgarding using zypper. He maintained he had used it for years and it worked for me last time. Sadly I can not find the thread or the link. If anybody can help please it would be appreciated.

A question, there are significant differences between 13.1 and 13.2 with regard to file system and partition sizes etc. I have my /home directory in another partition but does zypper sort out the re-formatting to btrfs? I assume /home is left as it is but if I wanted to change to XFS is there an automated process or is it simply backup, reformat, restore?
Budgie

Here’s my process;

sed -i 's/13.1/13.2/' /etc/zypp/repos.d/* && zypper ref && zypper dup

:slight_smile:

Ever heard of search machines like Google?
Searching for “opensuse upgrade” gives me this as second result (the top result is the corresponding page in german…):
https://en.opensuse.org/SDB:System_upgrade

A question, there are significant differences between 13.1 and 13.2 with regard to file system and partition sizes etc. I have my /home directory in another partition but does zypper sort out the re-formatting to btrfs? I assume /home is left as it is but if I wanted to change to XFS is there an automated process or is it simply backup, reformat, restore?

zypper is a package management tool. It just installs and removes packages. It does not do any reformatting or repartitioning for you.

If you want to change your /home (or any other partition, for that matter) to a different filesystem, you have to reformat it, yes. (although there are some migration paths available, btrfs comes with a tool to convert existing ext2/3/4 partitions e.g.)
But there’s no need to do so. You can just as well keep using your “old” filesystems in 13.2. My 13.2 system here still runs on reiserfs… :wink:

Hi,

sed has no useful exit status so using **&& **in to check if sed is successful in editing files is useless this case. (because sed is not a file editor)

Here is my dvd.repo

[dvd]
name=dvd
enabled=0
autorefresh=0
baseurl=http://opensuse-guide.org/repo/13.2/
type=rpm-md
keeppackages=1

Now let us do the sed -i

sed -i 's/13\.1/13.2/' dvd.repo && echo good

will print good which is success but it did not change anything.

sed -i 's/13\.1/13.2/' dvd.repo && echo $?

will print 0 which means a successful exit status but it did not change anything

Now i will change the sed to change 13.2 to 13.1

sed -i 's/13\.2/13.1/' dvd.repo && echo $?

will print 0 which is really a success because it change 13.2 to 13.1

Also the left side of the / and / is a regexp and in regrexp world a dot . means any character so you should escape it if you want it to become a literal dot .

I don’t use it to check for success, I’m merely using it to wait for the command to execute before hopping to the next one, yes I could use ; but I’m stuck doing it like this :stuck_out_tongue:

Hi Miuku and wolfi323,
Don’t know how I missed the google result I am ashamed to say but many thanks to both of you.
I have plenty to do now so will get on with it.
Thanks again,
Budgie2