{"id":1228,"date":"2021-03-21T12:32:10","date_gmt":"2021-03-21T17:32:10","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=1228"},"modified":"2021-03-21T15:24:19","modified_gmt":"2021-03-21T20:24:19","slug":"how-to-in-place-upgrade-from-opensuse-15-1-to-15-2","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=1228","title":{"rendered":"How to in-place upgrade from openSUSE 15.1 to 15.2"},"content":{"rendered":"<p>Following along in my line of &#8220;Readers Digest&#8221; versions of the official Opensuse upgrades procedures (here are a couple of my past ones: <a title=\"http:\/\/yourlinuxguy.com\/?p=169\" href=\"http:\/\/yourlinuxguy.com\/?p=169\" target=\"_blank\" rel=\"noopener noreferrer\">11.1<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=333\" href=\"http:\/\/yourlinuxguy.com\/?p=333\" target=\"_blank\" rel=\"noopener noreferrer\">11.2<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=812\" href=\"http:\/\/yourlinuxguy.com\/?p=812\" target=\"_blank\" rel=\"noopener noreferrer\">11.4<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=948\" href=\"http:\/\/yourlinuxguy.com\/?p=948\" target=\"_blank\" rel=\"noopener noreferrer\">12.1<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=954\" href=\"http:\/\/yourlinuxguy.com\/?p=954\" target=\"_blank\" rel=\"noopener noreferrer\">12.2<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=1052\" href=\"http:\/\/yourlinuxguy.com\/?p=1052\" target=\"_blank\" rel=\"noopener noreferrer\">12.3<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1081\">13.1<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1151\">13.2<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1169\">42.1<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1185\">42.2<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1192\">42.3<\/a>, <a href=\"http:\/\/yourlinuxguy.com\/?p=1201\">15.0<\/a>, and <a href=\"http:\/\/yourlinuxguy.com\/?p=1218\">15.1<\/a>)&#8230; Here\u2019s the latest for upgrading in-place from openSuse <strong>15.1<\/strong> to <strong>15.2<\/strong> below. Just be sure to run each of these lines one-at-a-time, not like a script.<\/p>\n<p>And please&#8230; if you don&#8217;t know what you&#8217;re doing, please don&#8217;t do this. This process does not take many special conditions into account, since it is a simplified version. There&#8217;s a link at the end for the official documented instructions if you need further help. Now, let&#8217;s get to it:<\/p>\n<pre>#\n# Run the following as the root user, or insert all your sudo commands if you like\n# Tip: Make a snapshot before you proceed!\n# Tip: Use \"screen\" to run the dup\n# Tip: Ensure you have space to do an upgrade (the \/boot requires more space these days)! \"df -h\"\n# Tip: Check your version, to know what your upgrading from and to: \"more \/etc\/SUSE-brand\"\n# If you can, do a final update (if the repos still exist):\nzypper ref;zypper up\n# Now check for custom repos (note it for later if so), and make sure update repo is set and enabled before upgrading:\nzypper lr --url\n# Check to see repos defined in \/etc\/zypp\/repos.d\/ (e.g. hard-coded to 15.1), or using the $releasever variable (new method):\nmore \/etc\/zypp\/repos.d\/*\n# (IF NEEDED) Replace Leap repos defined in \/etc\/zypp\/repos.d\/ are using the $releasever variable:\nsudo sed -i 's\/15.1\/${releasever}\/g' \/etc\/zypp\/repos.d\/*.repo\n# Switch and refresh all repositories to new (new method):\nzypper --releasever=15.2 ref\n# Verify the repos are set with variable:\nzypper lr --uri\n# Finally, do the Distribution UPgrade... and I like the option to download all the packages first, before installation (if space is available)...\nzypper --releasever=15.2 dup --download-in-advance\n# And now that the upgrade is done, add back any custom repos at this point (optional, depends on your environment) \n# (optional) And I'm not sure why, but on some of my systems grub did not get configured, so I had to:\n# grub2-mkconfig -o \/boot\/grub2\/grub.cfg\n# And reboot (and watch from a console)...\ninit 6<\/pre>\n<p>My advice is to make sure you have multiple terminal sessions during the upgrade, in case something goes a little strange, and make sure you have space for the kernel and all the files (especially if you have small \/boot partitions).<\/p>\n<p>Thanks to the folks at Suse; and here&#8217;s the thorough and detailed guide that I adapted this from:<br \/>\n<a title=\"https:\/\/en.opensuse.org\/SDB:System_upgrade\" href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/en.opensuse.org\/SDB:System_upgrade<\/a><\/p>\n<p>Cool!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following along in my line of &#8220;Readers Digest&#8221; 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, 12.3, 13.1, 13.2, 42.1, 42.2, 42.3, 15.0, and 15.1)&#8230; Here\u2019s the latest&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=1228\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[12,164,165],"tags":[],"class_list":["post-1228","post","type-post","status-publish","format-standard","hentry","category-advanced","category-opensuse15-0","category-opensuse15-1"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-jO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1228"}],"version-history":[{"count":6,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1228\/revisions\/1235"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}