Member-only story

Install .Net Core 3.1 SDK on Ubuntu 20.04 LTS (Focal Fossa)

Install Dotnet Core 3.1 on Ubuntu 20.04 LTS

Mwiza Kumwenda
2 min readApr 29, 2020
Focal Fossa

On April 23rd 2020: Canonical announced the general availability of Ubuntu 20.04 LTS (Focal Fossa), which boasts top security and great performance.

For .NET Core developers here is how you can install the .Net Core SDK 3.1.

Install .Net Core

First download .NET Core SDK 3.1, you can download it here

Go to the directory you just downloaded the SDK 3.1 file. In my case, it is the Downloads folder.

$ cd ~/Downloads

Now, extract the SDK file and copy it to a directory named dotnet in your home folder using the following command.

$ mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/dotnet

Configure .Net CLI

Add .Net core to your path to be able to run dotnet commands from your terminal.

$ export DOTNET_ROOT=$HOME/dotnet
$ export PATH=$PATH:$HOME/dotnet

The two commands above only make dotnet CLI commands available to your current shell session.

To permanently add the commands to your shell. You can edit your bash profile…

--

--

Mwiza Kumwenda
Mwiza Kumwenda

No responses yet