Install .NET Core in Amazon Linux 2 using yum

Vlad picture Vlad · May 7, 2019 · Viewed 7.8k times · Source

I cannot find a straightforward way of installing dotnet 2.2 on a AWS Linux 2 AMI.

There was some announcements that there was pre-built AMI's with it installed, but the ones I see, also have different versions of MSSQL Server.

Isn't there a way to install dotnet core 2.2 using yum or getting an AMI without SQL Server?

I found Run .NET programs on Amazon Linux AMI but I wonder if it is still valid, and if there is not an easier way.

Answer

Have you tried the following:

sudo yum update 
sudo yum install dotnet-sdk-2.2

Also this link might help: https://dotnet.microsoft.com/download/linux-package-manager/centos/sdk-current