{"id":13903,"date":"2022-01-14T09:30:21","date_gmt":"2022-01-14T09:30:21","guid":{"rendered":"https:\/\/linuxways.net\/?p=13903"},"modified":"2022-01-14T09:30:21","modified_gmt":"2022-01-14T09:30:21","slug":"how-to-upgrade-net-sdk-on-debian-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-upgrade-net-sdk-on-debian-11\/","title":{"rendered":"How to Upgrade .Net SDK on Debian 11"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>With the release of Debian 11, developers are going through multiple changes and updates. I am writing this guide to show that you have a robust dot Net Framework running on your computer. Either you installed .Net 5 on a previous edition of <a href=\"https:\/\/linuxways.net\/de\/debian\/how-to-install-net-5-on-debian-10\/\">Debian<\/a> or it was the beta version of .Net 6, this article will cover all the aspects for our Debian community.<\/p>\n<p>I would recommend that you begin from the first step and go thoroughly to the last. This will help you to avoid making mistakes while developing .net applications. As .Net SDK and runtime are not available in Debian repositories. Therefore, we need to make sure that we use the right repositories to install and upgrade the SDK on our system. I am using Debian 11, and all the instructions apply to <a href=\"https:\/\/dotnet.microsoft.com\/en-us\/\">Debian 11 only.<\/a>\u00a0You must not use Ubuntu PPAs to install or update the SDK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1046\" height=\"309\" class=\"wp-image-13904\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-266.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-266.png 1046w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-266-300x89.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-266-1024x303.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-266-768x227.png 768w\" sizes=\"auto, (max-width: 1046px) 100vw, 1046px\" \/><\/p>\n<h2>Dependency Requirements For .Net SDK<\/h2>\n<p>The .Net SDK does not need any external dependencies. All the dependencies are bundled within the single installer itself.<\/p>\n<h2>Step 1. Add the .Net SDK Keys on Debian<\/h2>\n<p>This should always be in your mind that you need to update your system first to avoid any issues. Following commands are required to update the Debian.<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<pre><strong>$ sudo apt dist-upgrade<\/strong><\/pre>\n<p>The Debian system will be ready to install .Net once the core operating system is updated and upgraded. Now add the security keys using the below commands.<\/p>\n<pre><strong>$ wget https:\/\/packages.microsoft.com\/config\/debian\/11\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"298\" class=\"wp-image-13905\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-267.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-267.png 647w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-267-300x138.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<pre><strong>$ sudo dpkg -i packages-microsoft-prod.deb<\/strong><\/pre>\n<pre><strong>$ rm packages-microsoft-prod.deb<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"164\" class=\"wp-image-13906\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-268.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-268.png 643w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-268-300x77.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p>As soon as you run these commands, all the related repositories will be available for you.<\/p>\n<h2>Step 2. Install the .Net SDK 6<\/h2>\n<p>Now we will perform the installation using the following commands.<\/p>\n<pre><strong>$ sudo apt-get update<\/strong><\/pre>\n<pre><strong>$ sudo apt-get install -y apt-transport-https<\/strong><\/pre>\n<pre><strong>$ sudo apt-get update<\/strong><\/pre>\n<pre><strong>$ sudo apt-get install -y dotnet-sdk-6.0<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"388\" class=\"wp-image-13907\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-269.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-269.png 651w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-269-300x179.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-269-501x300.png 501w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/p>\n<h2>Step 3. Install the .Net Runtime<\/h2>\n<p>The .Net SDK will be useless without .Net runtime. Use the following commands to install the runtime.<\/p>\n<pre><strong>$ sudo apt-get update<\/strong><\/pre>\n<pre><strong>$ sudo apt-get install -y apt-transport-https<\/strong><\/pre>\n<pre><strong>$ sudo apt-get update<\/strong><\/pre>\n<pre><strong>$ sudo apt-get install -y aspnetcore-runtime-6.0<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"365\" class=\"wp-image-13908\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-270.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-270.png 649w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-270-300x169.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/strong><\/p>\n<h2>Step 4. Verify the Installation of .Net 6<\/h2>\n<p>Now we will verify the installation of .Net 6 on the Debian 11 system. It is simple to check the existence of the software.<\/p>\n<pre><strong>$ dotnet --version<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"351\" height=\"65\" class=\"wp-image-13909\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-271.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-271.png 351w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-271-300x56.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/strong><\/p>\n<h2><strong>Step 5. How to Remove the .Net from Debian<\/strong><\/h2>\n<p>In our case, it is simple to remove the dot Net from our system. Use the following command and you are ready to remove the .Net packages.<\/p>\n<pre><strong>$ sudo apt remove dotnet-sdk-6.0<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"258\" class=\"wp-image-13910\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-272.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-272.png 647w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/01\/word-image-272-300x120.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>It was simple to install both .Net SDK and Runtime on Debian. I hope you had a good experience.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction With the release of Debian 11, developers are going through multiple changes and updates. I am writing this guide to show that you have a robust dot&hellip;<\/p>","protected":false},"author":1,"featured_media":13973,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[848,521],"class_list":["post-13903","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-net-sdk","tag-debian-11"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=13903"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/13903\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/13973"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=13903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=13903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=13903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}