{"id":9452,"date":"2021-01-17T08:21:12","date_gmt":"2021-01-17T13:21:12","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9452"},"modified":"2024-02-20T16:51:45","modified_gmt":"2024-02-20T13:51:45","slug":"install-net-core-sdk-ubuntu-20-04","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/","title":{"rendered":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04"},"content":{"rendered":"\n

This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu<\/a> 20.04 or older systems using the command-line interface.<\/p>\n\n\n\n

.NET Core is a free and open-source, managed computer software framework for Windows<\/a>, Linux<\/a>, and macOS operating systems developed by Microsoft employees via the .NET Foundation. It is a cross-platform successor to .NET Framework.<\/p>\n\n\n\n

As of .NET Core has been rebranded to .NET starting from version 5. The .NET framework supports the use of NuGet packages as opposed to the .NET Framework, which is serviced using Windows Update.<\/p>\n\n\n\n

Step 1: Setup PPA<\/h2>\n\n\n\n

The Microsoft team provides and Debian<\/a> packages to create PPA on Ubuntu systems. Run the following command in your terminal to download the Debian package and install it on your system.<\/p>\n\n\n\n

$ wget https:\/\/packages.microsoft.com\/config\/ubuntu\/20.04\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \n$ sudo dpkg -i packages-microsoft-prod.deb<\/code><\/pre>\n\n\n\n

For Ubuntu 18.08 download this package instead of in the first step above:<\/p>\n\n\n\n

$ wget https:\/\/packages.microsoft.com\/config\/ubuntu\/18.04\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb<\/code><\/pre>\n\n\n\n

Step 2: Install .NET Core SDK on Ubuntu<\/h2>\n\n\n\n

Run the following commands to update your apt-cache and to install the .NET SDK. The current version as of this writing is .NET 5.0<\/p>\n\n\n\n

$ sudo apt update\n$ sudo apt install -y apt-transport-https\n$ sudo apt update\n$ sudo apt install -y dotnet-sdk-5.0<\/code><\/pre>\n\n\n\n

Step 3: Install ASP.NET Core Runtime on Ubuntu<\/h2>\n\n\n\n

The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn’t provide the runtime. Run the following commands install the ASP.NET Core Runtime.<\/p>\n\n\n\n

$ sudo apt update\n$ sudo apt install -y apt-transport-https\n$ sudo apt update\n$ sudo apt install -y aspnetcore-runtime-5.0<\/code><\/pre>\n\n\n\n

As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn’t include ASP.NET Core support by replacing aspnetcore-runtime-5.0<\/strong> in the previous command with dotnet-runtime-5.0<\/strong>:<\/p>\n\n\n\n

$ sudo apt install -y dotnet-runtime-5.0<\/code><\/pre>\n\n\n\n

Conclusion<\/h2>\n\n\n\n

You have seen how easy it is to install .NET Core SDK and the Runtime options in Ubuntu 20.04 and 18.04.<\/p>\n","protected":false},"excerpt":{"rendered":"

This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface. .NET Core is a free and…<\/p>\n","protected":false},"author":1,"featured_media":9453,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,25,16,18],"tags":[29,72,164,183,350,354,359,379,424,524,591,598,624],"yoast_head":"\nHow to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04<\/title>\n<meta name=\"description\" content=\"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04\" \/>\n<meta property=\"og:description\" content=\"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-17T13:21:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-20T13:51:45+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04\",\"datePublished\":\"2021-01-17T13:21:12+00:00\",\"dateModified\":\"2024-02-20T13:51:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\"},\"wordCount\":267,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg\",\"keywords\":[\".NET Core\",\"ASP.NET Core\",\"Cross Platform\",\"Debian\",\"Libraries\",\"Linux\",\"MacOS\",\"Microsoft\",\"Open Source\",\"SDK\",\"Tools\",\"Ubuntu\",\"Visual Studio\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Libraries\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\",\"url\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\",\"name\":\"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg\",\"datePublished\":\"2021-01-17T13:21:12+00:00\",\"dateModified\":\"2024-02-20T13:51:45+00:00\",\"description\":\"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Install .NET Core SDK Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04","description":"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04","og_description":"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface","og_url":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-01-17T13:21:12+00:00","article_modified_time":"2024-02-20T13:51:45+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04","datePublished":"2021-01-17T13:21:12+00:00","dateModified":"2024-02-20T13:51:45+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/"},"wordCount":267,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg","keywords":[".NET Core","ASP.NET Core","Cross Platform","Debian","Libraries","Linux","MacOS","Microsoft","Open Source","SDK","Tools","Ubuntu","Visual Studio"],"articleSection":["Articles","Guides","How To","Libraries","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/","url":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/","name":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg","datePublished":"2021-01-17T13:21:12+00:00","dateModified":"2024-02-20T13:51:45+00:00","description":"This quick tutorial will show you how to install .NET Core SDK and Runtime on Ubuntu 20.04 or older systems using the command-line interface","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/install-net-core-sdk-ubuntu-20-04.jpg","width":1200,"height":630,"caption":"Install .NET Core SDK Ubuntu"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/install-net-core-sdk-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Install .NET Core SDK and Runtime on Ubuntu 20.04 | 18.04"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9452"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=9452"}],"version-history":[{"count":1,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9452\/revisions"}],"predecessor-version":[{"id":13603,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9452\/revisions\/13603"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/9453"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=9452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=9452"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=9452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}