[Developer's community]

Installing .NET Core on Ubuntu Linux

This topic is all about .NET Core installation on Ubuntu Linux. If you need this framework to be installed on Linux for development or CI/CD automation (like me), keep reading :)

The trick is that installation steps are a bit different from what Microsoft suggests. It can't be installed using 'apt-get' and you'll have numerous errors during the process. More about the issue here. So, to make it work you'd need to create a 'dotnet' directory in your profile:

mkdir dotnet

Move to this directory and download the archive containing .NET Core. You can use this page for the purpose. Select x64 version for Linux and copy the link you can use to download the framework with ''wget':

wget https://download.microsoft.com/download/8/8/5/88544F33-836A-49A5-8B67-451C24709A8F/dotnet-s dk-2.1.300-linux-x64.tar.gz

Unpack archive:

tar zxf dotnet-sdk-2.1.300-linux-x64.tar.gz

Add environment variables so you can execute 'dotnet' from any location:

export DOTNET_ROOT=$PATH:$HOME/dotnet

export PATH=$PATH:$HOME/dotnet

Check the installation:

dotnet --version

Comments (1) -

  • hiouhou

Add comment

Loading