Install dotnet core on Debian 10

Install dotnet core on Debian 10 is essential to run dotnet core application on Debian. This time Microsoft has done it easy to install dotnet core 3 on lots of different Linux distributions.

Run the following commands. This only has to be done the very first time you install dotnet core.

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/10/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

Now you have 3 options on what to install. Do you want the complete SDK? That is needed if you are going to develop dotnet core applications. Or do you just want to run dotnet core applications? Then there is dotnet core runtime or asp net runtime.

By default, apt can not download packages from https. So we first need to install apt-transport-https

sudo apt-get update
sudo apt-get install apt-transport-https

Option 1: Complete .NET Core SDK

This will allow you to develop your own netcore applications.

sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

Option 2: .NET Core 3 runtime

The dotnet core runtime files will allow you to run dotnet core and asp.net core application. So if you need to run both dotnet core and asp.net this is the option for you.

sudo apt-get update
sudo apt-get install dotnet-runtime-3.1

Option 3: ASP.NET Core runtime

This option will only run ASP.NET Core applications.

sudo apt-get update
sudo apt-get install aspnetcore-runtime-3.1

When Net Core 3.2 is released you only have to run the last part and change 3.1 to 3.2. Like this dotnet core runtime example:

sudo apt-get update
sudo apt-get install dotnet-runtime-3.2

That is how you install dotnet core on Debian 10. Now your system should be ready for .NET Core. Read more on Microsofts own pages.

Looking to install .net core on Raspbian?

Related Posts

C# check if server is online

C# check if server is online directly from your code. Check servers or services like web servers, database servers like MySQL and MongoDB. You can probably check…

C# Convert Int to Char

C# convert int to char google search is giving some result which I think is not directly what some people want. Most results are giving instructions on…

c# bash script

C# Bash Script Made Easy

There are many reasons why it could be handy to run a bash script from a C# application. In 2014, before I changed to a Mac as…

csharp ping check

C# Ping Check the easy way

How can we check if a computer, server, or another device is online? We can use a C# Ping check. If you can check the device with…

C# return index of a object

C# return index of a object in a List

How to return the index of a list type that is an object in C#. Most examples only shows simple string types when they show how to…

c# 99 bottles of beer

C# 99 bottles of beer on the wall

C# 99 bottles of beer on the wall is an easy programming challenge. The challenge can be solved in at least dozens of ways. Here is one…

This Post Has 2 Comments

Leave a Reply