The .NET Core is a free and open-source software framework designed with keeping Linux and macOS in mind. It is a cross-platform successor to .NET Framework available for Linux, macOS and Windows systems. .NET Core framework already provides scaffolding tools for bootstrapping projects.

Advertisement

This tutorial explained how to install .net core on Debian 10 Linux system.

Prerequsities

Login to your debain system with sudo privileged account.

Open a terminal, update the apt cache and install below required packages

sudo apt update 
sudo apt install apt-transport-https 

Step 1 – Enable Microsoft PPA

First of all, you need to enable Microsoft packages repository on your Debian system. The Microsoft official team provides a Debian packages to create PPA file on your system.

Open a terminal on your Debian system and configure Microsoft PPA by run the following commands:

wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb 
sudo dpkg -i packages-microsoft-prod.deb 

Step 2 – Installing .NET core on Debian

The .NET Core SDK is the Software development kit used for developing applications. The .net runtime used for running application build on .net core.

Open a terminal and execute below commands to install .NET Core SDK:

sudo apt update 
sudo apt install dotnet-sdk-3.1 

To install the previous version of .Net Core SDK 2.1, type:

sudo apt install dotnet-sdk-2.1

Step 3 – Installing .NET core Runtime Only

.NET Core Runtime is required for the system, where you only need to run application. For example, production or stating environments are required to run applications only.

Execute following commands to install .NET Core runtime only:

sudo apt update 
sudo apt install dotnet-runtime-3.1 

To install the previous version of .Net core runtime 2.1, type:

sudo apt install dotnet-runtime-2.1

Conclusion

This tutorial helped you to install .NET Core on a Debian 10 Buster Linux system.

Share.

2 Comments

Leave A Reply

Exit mobile version