sudo su
mkdir -p /opt/dotnet
chown pi /opt/dotnet
sudo apt-get udpate
sudo apt-get install curl libunwind8 gettext apt-transport-https
sudo apt-get install libicu63 libssl1.1
cd /opt/dotnet
#download from http://cdn.chorke.org/soft/rpix/dotnet/
sudo tar zxf dotnet-sdk-2.2.102-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf spnetcore-runtime-2.2.1-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf aspnetcore-runtime-2.2.1-linux-arm.tar.gz -C /opt/dotnet/
#nano ~/.bash_profile
#export DOTNET_ROOT=opt/dotnet
#export PATH=$PATH:$DOTNET_ROOT
printenv
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
dotnet --help
dotnet --info