Skip to content

Instantly share code, notes, and snippets.

@joaofx
Last active November 10, 2020 18:04
Show Gist options
  • Save joaofx/c690f158d25480ed4c53f4e2328b216c to your computer and use it in GitHub Desktop.
Save joaofx/c690f158d25480ed4c53f4e2328b216c to your computer and use it in GitHub Desktop.

Install .NET in Linux

By dotnet-install script

curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 5.0.100

Manual

.NET Versions: https://dotnet.microsoft.com/download/dotnet/

Replace 5.0.0-rc.2 with the version you want to install.

curl https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-rc.2/dotnet-5.0.0-rc.2-deb.tar.gz -o ~/dotnet-5.0.0-rc.2-deb.tar.gz

mkdir ~/net5rc2 && tar xvf ~/dotnet-5.0.0-rc.2-deb.tar.gz -C ~/net5rc2

apt install -y ~/net5rc2/dotnet_packages/*

dotnet --list-sdks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment