{"id":588,"date":"2010-07-05T01:35:40","date_gmt":"2010-07-05T06:35:40","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=588"},"modified":"2010-07-05T07:11:38","modified_gmt":"2010-07-05T12:11:38","slug":"remote-upgrade-to-sles-11-sp1-using-zypper","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=588","title":{"rendered":"Remote Upgrade to SLES 11 SP1 Using Zypper"},"content":{"rendered":"<p>As you might have noted in my previous posts, I do not like to visit server consoles for upgrades.\u00a0  So I want to thank Novell for having outlined a handy little instruction sheet here:\u00a0 <a href=\"http:\/\/www.novell.com\/support\/documentLink.do?externalID=7005410\">How to upgrade to SLES\/SLED 11 SP1 (TID 7005410)<\/a> on how to do various remote upgrades from SLES 11 to SLES 11 sp1, including remotely via shell session.\u00a0 I&#8217;ve used these steps outlined in the section called &#8220;<em>Update to SP1 via patches<\/em>&#8221; &#8211;&gt; &#8220;<em>2) Update by using zypper<\/em>&#8221; with great success so far.\u00a0 However, I&#8217;d like to toss one or two little tips back to the community&#8230;<\/p>\n<p>In these steps outlined by Novell, you are required to manually retrieve the values from \/etc\/products.d\/*.prod and individually install the special upgrade\/migration packages for each listed product definition.\u00a0 And that&#8217;s fine in a lab, but with a farm of servers and potentially more than one upgrade\/migration type each (in my situation they were cluster\/HA servers, so each had two items), this can be a bit of a bother.\u00a0 So for added convenience, I wrote a little &#8220;for&#8221; loop tweak to take care of those manual steps.<\/p>\n<p>Without further ado, here are the modified steps for the upgrade to SLES11 sp1 using zypper with my tweak (thanks again Novell, and please see the caveats below):<\/p>\n<pre><code>zypper ref -s\r\nzypper up -t patch\r\nzypper up -t patch\r\nfor item in `cat \/etc\/products.d\/*.prod|grep '&lt;product&gt;'|sed s\/\\&lt;*.product\\&gt;\/\/g |sed s\/\" \"\/\/g`; do zypper in -t product $item;done\r\nsuse_register -d 2 -L \/root\/.suse_register.log\r\nzypper ref -s\r\nzypper lr\r\nzypper dup<\/code><\/pre>\n<p>&#8230;and there are a few <em>very important points<\/em> to be made about the above steps:<\/p>\n<ul>\n<li>Do not run those steps as a continuous script;\u00a0 step through it line-by-line, watching the results at each step.<\/li>\n<li>Make sure your registration keys are all up to date and your repositories are in good shape <em>before starting<\/em>!\u00a0 This is especially important and complex if you are using the HA extension or other custom add-on products that require registrations and repositories.<\/li>\n<li>In my experience, I sometimes needed to re-check and repair my repositories after the first or second &#8220;patch&#8221; statement, and sometimes before the &#8220;dup&#8221; statement; I do not know why.\u00a0 Even Novell&#8217;s doc suggests that there may be complications.<\/li>\n<li>Afterward, you might want to go in and run the yast customer center registration tool, and allow it to clean itself up.<\/li>\n<\/ul>\n<p>I hope that helps!<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you might have noted in my previous posts, I do not like to visit server consoles for upgrades.\u00a0 So I want to thank Novell for having outlined a handy little instruction sheet here:\u00a0 How to upgrade to SLES\/SLED 11&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=588\">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,59,93],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-advanced","category-sles11","category-sles11sp1"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-9u","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/588","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=588"}],"version-history":[{"count":4,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}