Skip to content

How to Install .NET Core on Debian 10

Steps
3
Category
Linux
Covers
.NET, Debian
Versions & support
About .NET →, About Debian →
On this page 3 steps

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.

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 of 3Enable 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 of 3Installing .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 of 3Installing .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.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top