Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific version of .NET Core runtime on Linux

How to install the most recent version of .NET Core runtime is well explained, basically

sudo apt-get install dotnet-runtime-3.1

What if we want to install older version?

Microsoft provides dotnet-install.sh. It is possible to do dotnet-install.sh -Version 3.1.0 -Runtime aspnetcore. However this script writes the binaries under $HOME/.dotnet. Also the runtime is not listed by dotnet --info.

How to install specific version of .NET Core runtime recognized by dotnet --info?

like image 735
Petr Havlicek Avatar asked Apr 16 '20 13:04

Petr Havlicek


People also ask

Can .NET Core run on Linux?

NET Core runtime allows you to run applications on Linux that were made with .

Can you install .NET framework on Linux?

NET works well on their Linux distributions. Support is provided by those distributions. You can still open issues at dotnet/core if you run into problems.

Is NET Core runtime backwards compatibility?

Yes. By installing . NET Core Runtime 2.2.


1 Answers

You can use

apt policy dotnet-sdk-3.1

to see a list of available versions. Then,

sudo apt-get install -y --allow-downgrades dotnet-sdk-3.1=3.1.301-1
like image 199
George Cimpoies Avatar answered Oct 20 '22 08:10

George Cimpoies