{"id":1185,"date":"2017-07-14T20:10:02","date_gmt":"2017-07-15T01:10:02","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=1185"},"modified":"2017-07-14T20:10:02","modified_gmt":"2017-07-15T01:10:02","slug":"how-to-in-place-upgrade-from-suse-leap-42-1-to-leap-42-2","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=1185","title":{"rendered":"How to in-place upgrade from Suse Leap 42.1 to Leap 42.2\u2026"},"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\">11.1<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=333\" href=\"http:\/\/yourlinuxguy.com\/?p=333\" target=\"_blank\" rel=\"noopener\">11.2<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=812\" href=\"http:\/\/yourlinuxguy.com\/?p=812\" target=\"_blank\" rel=\"noopener\">11.4<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=948\" href=\"http:\/\/yourlinuxguy.com\/?p=948\" target=\"_blank\" rel=\"noopener\">12.1<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=954\" href=\"http:\/\/yourlinuxguy.com\/?p=954\" target=\"_blank\" rel=\"noopener\">12.2<\/a>, <a title=\"http:\/\/yourlinuxguy.com\/?p=1052\" href=\"http:\/\/yourlinuxguy.com\/?p=1052\" target=\"_blank\" rel=\"noopener\">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>), here\u2019s the latest for upgrading in-place from Suse Leap <strong>42.1<\/strong> to Leap <strong>42.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>#\r\n# Make a snapshot before you proceed!\r\n# Run the following as the root user, or insert all your sudo commands if you like\r\n# Please ensure you have space to do an upgrade!\r\ndf -h\r\n# If you can, do a final update (if the repos still exist)...\r\nzypper ref;zypper up\r\n# Now check your repos. Look for anything custom, and note it for later if so...\r\nzypper lr --url\r\n# Now, we actually do the UPGRADE\u2026\r\n# Disable all the old repos...\r\nzypper modifyrepo --all --disable\r\n# Now set up the new repos for 42.2...\r\nzypper addrepo --check --refresh --name 'openSUSE-42.2-Update' http:\/\/download.opensuse.org\/update\/leap\/42.2\/oss\/ repo-42.2-update\r\nzypper addrepo --check --refresh --name 'openSUSE-42.2-Update-Non-Oss' http:\/\/download.opensuse.org\/update\/leap\/42.2\/non-oss\/ repo-42.2-update-non-oss\r\nzypper addrepo --check --refresh --name 'openSUSE-42.2-OSS' http:\/\/download.opensuse.org\/distribution\/leap\/42.2\/repo\/oss\/ repo-42.2-oss\r\nzypper addrepo --check --refresh --name 'openSUSE-42.2-Non-OSS' http:\/\/download.opensuse.org\/distribution\/leap\/42.2\/repo\/non-oss\/ repo-42.2-non-oss\r\n# Verify that the repos look right\r\nzypper lr --uri\r\n# Import the keys for the repos and refresh the local cache\u2026\r\nzypper --gpg-auto-import-keys ref\r\n# Do a Distribution UPgrade... and I like the option to download all the packages first, before installation...\r\nzypper dup --download-in-advance\r\n# Now, make a list of the old disabled repos; they might be a combination of 12.3 and 13.x on some systems, if they weren't cleaned before...  Whoops...  ;)\r\nzypper lr\r\n# Remove all the old repos, for example...\r\nzypper rr repo-42.1-non-oss repo-42.1-oss repo-42.1-update repo-42.1-update-non-oss \r\n# And now that the upgrade is done, add back any custom repos at this point (optional, depends on your environment) \r\n# One more check to be sure that only the desired 42.1 repos remain...\r\nzypper lr --uri\r\n# And reboot (and watch from a console)...\r\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.<\/p>\n<p>Thanks to the folks at Suse, and here&#8217;s the &#8220;long and detailed&#8221; guide that I adapted this from:<br \/>\n<a title=\"https:\/\/en.opensuse.org\/SDB:Distribution-Upgrade\" href=\"https:\/\/en.opensuse.org\/SDB:Distribution-Upgrade\" target=\"_blank\" rel=\"noopener\">https:\/\/en.opensuse.org\/SDB:Distribution-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), here\u2019s the latest for upgrading in-place from Suse&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=1185\">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_post_was_ever_published":false,"_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":""},"categories":[12,157,160],"tags":[],"class_list":["post-1185","post","type-post","status-publish","format-standard","hentry","category-advanced","category-leap42-1","category-leap42-2"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-j7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1185","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=1185"}],"version-history":[{"count":1,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions"}],"predecessor-version":[{"id":1186,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions\/1186"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}