Skip to content

Install .net on ubuntu

phaledang edited this page Jan 25, 2024 · 8 revisions

Scripted install

download

wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh

Grant permission

chmod +x ./dotnet-install.sh

Install

./dotnet-install.sh --version latest --runtime aspnetcore

The script defaults to installing the latest long term support (LTS) SDK version, which is .NET 8. To install the latest release, which might not be an (LTS) version, use the --version latest parameter.

./dotnet-install.sh --version latest

To install .NET Runtime instead of the SDK, use the --runtime parameter.

image

./dotnet-install.sh --version latest --runtime aspnetcore

You can install a specific major version with the --channel parameter to indicate the specific version. The following command installs .NET 8.0 SDK.

./dotnet-install.sh --channel 8.0

sudo snap install dotnet-sdk

Clone this wiki locally