Install .NET 5 SDK

Now we are going to download and install .NET 5 SDK.

Navigate to the official .NET 5 web site: https://dotnet.microsoft.com/download/dotnet/5.0 to get the direct link to the latest .NET 5 SDK binaries:

SDK

Click on the Arm64 and copy the direct download link:

SDK

The download link for .NET 5 SDK 5.0.201 is the following:

wget https://download.visualstudio.microsoft.com/download/pr/2e5353f1-8818-4d87-af94-0e5cec730b40/58172cde97795b55bcfc7177dbcf3c68/dotnet-sdk-5.0.201-linux-arm64.tar.gz

Create new folder and unzip SDK there (please change the version number to correspond to the SDK version that you downloaded):

sudo mkdir -p /usr/share/dotnet
sudo tar zxf dotnet-sdk-5.0.201-linux-arm64.tar.gz -C /usr/share/dotnet

In order to access dotnet command from everywhere, create new link:

sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

Now you can check that installation was successful:

dotnet --info

As output you should see SDK version information, something like this:

.NET SDK (reflecting any global.json):
 Version:   5.0.201
 Commit:    a09bd5c86c

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-arm64
 Base Path:   /home/ubuntu/dotnet/sdk/5.0.201/

Host (useful for support):
  Version: 5.0.4
  Commit:  f27d337295

.NET SDKs installed:
  5.0.201 [/home/ubuntu/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.4 [/home/ubuntu/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.4 [/home/ubuntu/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Please note that runtime environment id (RID) is: ubuntu.20.04-arm64.

Congratulations! You have successfully installed .NET 5 SDK!