{"id":625,"date":"2016-11-20T14:14:28","date_gmt":"2016-11-20T13:14:28","guid":{"rendered":"http:\/\/pvdm.xs4all.nl\/blog\/?p=625"},"modified":"2017-07-31T11:09:03","modified_gmt":"2017-07-31T09:09:03","slug":"my-personal-checklist-for-upgrading-from-opensuse-42-1-to-42-2","status":"publish","type":"post","link":"https:\/\/www.reeltoreel.nl\/blog\/?p=625","title":{"rendered":"My personal checklist for upgrading from openSUSE Leap 42.1 to 42.2 using online update (zypper dup)"},"content":{"rendered":"<p>** update &#8212; also tested ok on 42.2 -&gt; 42.3 **<\/p>\n<p>This is my personal checklist for upgrading from openSUSE Leap 42.1 to 42.2 using online update (zypper dup). This may or may not include all the steps necessary for YOUR system.<\/p>\n<p>You may not need all the steps. So be careful. Read it carefully, and make sure that you understand each step. Use it as an aid. Use it at your own risk.<br \/>\nRemember, always update 1 versionnumber at a time, so go from 42.1 -&gt; 42.2 -&gt; 42.3 and do not go from 42.1 to 42.3 !!<\/p>\n<p>For the full (very good) documentation, see: <a href=\"https:\/\/doc.opensuse.org\/documentation\/leap\/startup\/book.opensuse.startup_color_en.pdf\">https:\/\/doc.opensuse.org\/documentation\/leap\/startup\/book.opensuse.startup_color_en.pdf<\/a><\/p>\n<p><strong>Preparations:<\/strong><\/p>\n<ol>\n<li>Check your repos.\n<ol type=\"a\">\n<li>Remove all repos that you no longer need, like I have the \u2018kde updated apps\u2019 repo.<\/li>\n<li>It is most preferable to leave only base (oss &amp; non-oss), update(oss &amp; non-oss) &amp; packman repos.<\/li>\n<li># zypper verify<br \/>\nto remove cache files from the repos you deleted. Saves lots of disk space beforehand.<\/li>\n<\/ol>\n<\/li>\n<li>If necessary, but this may be not for you, enable packet locks on packages that you need. For instance, I still need <span style=\"text-decoration: underline;\">createrepo<\/span> and KDirStat and I don&#8217;t want the upgrade to delete these packages. This step may not be for you.\n<ol type=\"a\">\n<li># zypper al createrepo<\/li>\n<li># zypper al kdirstat<\/li>\n<\/ol>\n<\/li>\n<li>update your system to the latest patch level just before the upgrade.\n<ol type=\"a\">\n<li># zypper up<\/li>\n<\/ol>\n<\/li>\n<li>IMPORTANT!! Make sure that you have enough free diskspace, &gt;4GB is recommended. (probably in <strong>\/var\/cache<\/strong> but i&#8217;m not sure) &lt;&#8211; yes, confirmed<\/li>\n<\/ol>\n<p><strong>To change the repos:<\/strong><\/p>\n<ol>\n<li>go to the repo directory\n<ol type=\"a\">\n<li># cd \/etc\/zypp\/repos.d\/<\/li>\n<\/ol>\n<\/li>\n<li>change all references from 42.1 to 42.2 (or whatever version number you need)\n<ol type=\"a\">\n<li># sed -i \u2018s\/42.1\/42.2\/g\u2019 *.repo<\/li>\n<\/ol>\n<\/li>\n<li>check if the repo files are correct now\n<ol type=\"a\">\n<li># grep base * | cut -d&#8221;:&#8221; -f2-<br \/>\nand check the output<\/li>\n<\/ol>\n<\/li>\n<li>check to make sure that these new repos all exist and are accessible\n<ol type=\"a\">\n<li># zypper ref -f<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><strong>To start the update:<\/strong><\/p>\n<ol>\n<li><em>please read step 4.3 below first<\/em>.<\/li>\n<li>I like to start the update not in an X session, so either:\n<ol type=\"a\">\n<li>init 3 :to switch to runlevel 3, or<\/li>\n<li>CTRL-ALT-F1 to start a root session on tty1. This has the benefit that a graphical console is still available during the update. (press CTRL-ALT-F7 to switch)<br \/>\nbut his is not a necessary step. You can skip this if you want.<\/li>\n<\/ol>\n<\/li>\n<li>I like to download the files in advance, so I don\u2019t end up with a broken system when something goes wrong during the process. Please check for &gt;4GB free disk space beforehand.\n<ol>\n<li># zypper dup &#8211; -download-in-advance<br \/>\nOtherwise just leave the download-in-advance option out.<\/li>\n<\/ol>\n<\/li>\n<li>Really, really check the output good <u>before<\/u> giving it a go.\n<ol type=\"a\">\n<li>Check especially the section on \u2018downgraded packages\u2019 and \u2018<b>removed packages\u2019 <\/b>. Check if there aren\u2019t any packages that you <i>know<\/i> you want to keep.<\/li>\n<li>To check the <i>downgraded\u00a0<\/i>packages, I have a little tip: type \u2018v\u2019 at the promt where zypper is asking for \u2018yes or no\u2019, and the list will be repeated but now with version numbers!<\/li>\n<li>This step may be difficult to do on tty1, so you might want to do a test run of this command in the graphical console first, where you have a large scroll-back buffer. So check and then simply answer no at the end will do. Then repeat the command in the tty1, where you will answer yes of course.<\/li>\n<\/ol>\n<\/li>\n<li>Once you answered &#8216;y&#8217;, the download will start. For me, it was ~4000 packages, ~2.1GB download. How long this will take depends on your internet connection.<\/li>\n<li>After the download, the installation of the packages will start. How long this will take depends on the speed of your processor and disk system.<\/li>\n<li>then you can reboot<br \/>\n# reboot<\/li>\n<\/ol>\n<p>After the upgrade to 42.2, my server performed its functions (database, webserver, nfs, smb etc.) perfectly. However I had a slight issue with the KDE-desktop. The taskbar would not come up and the desktop was inaccesible.<br \/>\nTo solve that, I had to issue the following command:<br \/>\n# zypper in -t pattern \u201ckde_plasma\u201d<\/p>\n<p>That command installed some packages that were probably missing. After that, I could use the desktop as normal again.<\/p>\n<p>Have a lot of fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>** update &#8212; also tested ok on 42.2 -&gt; 42.3 ** This is my personal checklist for upgrading from openSUSE Leap 42.1 to 42.2 using online update (zypper dup). This may or may not include all the steps necessary for YOUR system. You may not need all the steps. So be careful. Read it carefully, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=625"}],"version-history":[{"count":20,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/625\/revisions"}],"predecessor-version":[{"id":690,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=\/wp\/v2\/posts\/625\/revisions\/690"}],"wp:attachment":[{"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reeltoreel.nl\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}