install dotnet on raspberry pi code example
Example: install dotnet on raspberry pi
# copy link for latest sdk & dotnet core runtime version from:
# https://dotnet.microsoft.com/download/dotnet
#example:
# download for core runtime:
sudo wget https://download.visualstudio.microsoft.com/download/pr/d464a46d-a904-4a0e-94f1-c2ccfc7a691f/dcdea88fb8b10c2358c19fde84f7103f/aspnetcore-runtime-5.0.4-linux-arm64.tar.gz
# download for sdk:
sudo wget https://download.visualstudio.microsoft.com/download/pr/2e5353f1-8818-4d87-af94-0e5cec730b40/58172cde97795b55bcfc7177dbcf3c68/dotnet-sdk-5.0.201-linux-arm64.tar.gz
# create a new dir to unzip these downloads to:
sudo mkdir dotnet-arm64
# unzip all the files like this:
sudo tar zxf <zipfile name> -C $HOME/dotnet-arm64
# make the dotnet command globaly accessible:
sudo nano .profile
# add these lines to the end of the file:
export DOTNET_ROOT=$HOME/dotnet-arm64
export PATH=$PATH:$HOME/dotnet-arm64
# reboot the system and try the new commands with:
dotnet --info