This short post is an walk through to install dotnet core on Ubuntu 20.04 LTS Linux system.

Enable Microsoft PPA

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

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb 
sudo dpkg -i packages-microsoft-prod.deb 

Installing Dotnet Core SDK

If you are going to create a application or making changes to existing application, you will required .net core sdk package on your system.

sudo apt update 
sudo apt install apt-transport-https 
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

Install Dotnet Core Runtime Only

To install .NET Core Runtime on Ubuntu 20.04 LTS system, execute the commands:

sudo apt update 
sudo apt install apt-transport-https 
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

Check .NET Core Version

You can use dotnet command line utility to check installed version of .NET Core on your system. To check dotnet version, type:

dotnet --version

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee