MY OPERATING SYSTEM DETAILS:
$cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Installing 3.1 version of dotnet sdk:
Step 1:
$wget https://download.visualstudio.microsoft.com/download/pr/6425056e-bfd5-48be-8b00-223c03a4d0f3/08a801489b7f18e9e73a1378082fbe66/dotnet-sdk-3.1.415-linux-x64.tar.gz
$wget https://download.visualstudio.microsoft.com/download/pr/6425056e-bfd5-48be-8b00-223c03a4d0f3/08a801489b7f18e9e73a1378082fbe66/dotnet-sdk-3.1.415-linux-x64.tar.gz
Step 2:
$mkdir -p "$HOME/dotnet" && tar zxf dotnet-sdk-3.1.415-linux-x64.tar.gz -C "$HOME/dotnet"
Step 3:
$ export DOTNET_ROOT=$HOME/dotnet && export PATH=$PATH:$HOME/dotnet
Step 4:
Verify the version as$dotnet --version