{"id":89,"date":"2022-01-07T22:22:21","date_gmt":"2022-01-07T21:22:21","guid":{"rendered":"https:\/\/kerms.hobby-site.org\/?p=89"},"modified":"2022-01-07T22:22:21","modified_gmt":"2022-01-07T21:22:21","slug":"distribution-upgrade-opensuse","status":"publish","type":"post","link":"https:\/\/kerms.hobby-site.org\/?p=89","title":{"rendered":"Distribution Upgrade OpenSUSE"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Before you begin<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#Before_you_begin\"><\/a><\/h1>\n\n\n\n<p>Make sure that you read the&nbsp;<a href=\"https:\/\/en.opensuse.org\/openSUSE:Most_annoying_bugs\">list of annoying bugs<\/a>&nbsp;for the new version you are going to install. Some of them could affect the update process. Usually, some solution or workaround is listed alongside the bug, so make sure that you are prepared for upcoming problems.<\/p>\n\n\n\n<p>Also, read the&nbsp;<a href=\"https:\/\/en.opensuse.org\/openSUSE:Release_Notes\">Release Notes<\/a>&nbsp;which list changes and glitches in the new release.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Upgrading from the command line<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#Upgrading_from_the_command_line\"><\/a><\/h1>\n\n\n\n<p>The following steps show how to upgrade to 15.3:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Update the repos<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#5._Update_the_repos\"><\/a><\/h2>\n\n\n\n<p>Check if your Leap repos defined in \/etc\/zypp\/repos.d\/ are using the $releasever variable already. If they are still hard-coded with a particular Leap version number, then you need to modify them first. For example, assuming your current version is Leap 15.2, then this can be done with<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo sed -i 's\/15.3\/${releasever}\/g' \/etc\/zypp\/repos.d\/*.repo\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Refresh with the new repos<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#6._Refresh_with_the_new_repos\"><\/a><\/h2>\n\n\n\n<p>Switch and refresh all repositories to 15.3<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># zypper --releasever=15.3 refresh<\/em>\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Execute the full distribution upgrade<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#7._Execute_the_full_distribution_upgrade\"><\/a><\/h2>\n\n\n\n<p>Now execute the full distribution upgrade.<strong>Warning:<\/strong>&nbsp;It is strongly recommended that you run the upgrade outside the X-window graphical mode. Thus it is recommended you run the command from either runlevel 3 (text + network), or a virtual console. Unfortunately many times the WIFI connection is managed\/available only in runlevel 5, so a virtual text console may be best while staying logged into the graphical console behind the scenes. People had their X session stopped\/crashed during the upgrade, causing the upgrade to abort, which in turn left the system in an inconsistent state. To change to runlevel 3, see&nbsp;<a href=\"https:\/\/en.opensuse.org\/SDB:Switch_runlevel\">SDB:Switch_runlevel<\/a>. To remain in runlevel 5, but use a &#8222;virtual console&#8220;, type control-alt-F1 (as an example).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>#<\/em> zypper --releasever=15.3 dup --download-in-advance --auto-agree-with-licenses --allow-vendor-change\n<\/pre>\n\n\n\n<p>With the above command, zypper will download all packages in advance &#8211; which is more reliable if your internet connection may fail. To download packages in heaps and install them in heaps, use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># zypper --releasever=15.3 dup<\/em>\n<\/pre>\n\n\n\n<p>Once the&nbsp;<code>dup<\/code>&nbsp;is finished, openSUSE sets the&nbsp;<code>releasever<\/code>&nbsp;variable to the new version.If you did the above dist upgrade before the official release date (eg.2021-06-02 for Leap 15.3), you may have installed a Release Candidate (RC) or a milestone version and will need to repeat the final&nbsp;<code>zypper dup<\/code>&nbsp;step now to receive the final release.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Reboot<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#8._Reboot\"><\/a><\/h2>\n\n\n\n<p>After upgrading, a reboot is recommended to start the new kernel and newer versions of everything.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Add extra repositories<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#9._Add_extra_repositories\"><\/a><\/h2>\n\n\n\n<p>Search for updated openSUSE Leap 15.3 compatible third-party repositories that you used before&nbsp;\u2014 if you still need them&nbsp;\u2014 and add them.<strong>Warning:<\/strong>&nbsp;Use with caution. Using third-party repositories may break your system or cause instabilities.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">zypper addrepo --name &lt;name&gt; &lt;url&gt; &lt;alias&gt;\n<\/pre>\n\n\n\n<p>Or, if you have URL of a .repo file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># zypper ar &lt;url.repo&gt;<\/em>\n<\/pre>\n\n\n\n<p>Executing&nbsp;<code>zypper up<\/code>&nbsp;may be enough to update your software from these extra repositories.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Afterwards<a href=\"https:\/\/en.opensuse.org\/SDB:System_upgrade#Afterwards\"><\/a><\/h2>\n\n\n\n<p>Discover and enjoy&nbsp;:)In addition,&nbsp;<code>zypper up<\/code>&nbsp;can be run from time to time to ensure you have the latest available packages from the various repositories that you have enabled. YOU (Yast Online Update) only addresses security updates from the official repositories.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before you begin Make sure that you read the&nbsp;list of annoying bugs&nbsp;for the new version you are going to install. Some of them could affect the update process. Usually, some solution or workaround is listed alongside the bug, so make &hellip; <a href=\"https:\/\/kerms.hobby-site.org\/?p=89\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/posts\/89"}],"collection":[{"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":1,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerms.hobby-site.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}