core

.NET for Linux Distributions

.NET can be installed on Linux in multiple ways, via packages, scripts, or tarballs. It can be installed globally, locally/privately, or with an app.

.NET is supported on Linux per .NET Support and Compatibility for Linux Distributions.

Distribution archives

.NET is included in the archives of the following distributions:

In general, you can install the .NET SDK via a versioned package, like dotnet7 or dotnet-sdk-7.0. For example, on Ubuntu 22.10, you can install .NET via the following.

sudo apt update && sudo apt install -y dotnet-sdk-7.0

Microsoft archives

Microsoft offers alternate feeds at packages.microsoft.com that include the Microsoft binary build of .NET. They are document at Install .NET on Linux.

You can move back-and-forth between distribution and Microsoft archives using a variety of package manager patterns and previous challenges to guide you.

Containers

.NET containers are published to multiple registries.

Microsoft publishes container images per .NET container publishing policy. Other distributions may have different policies.

Building .NET from source

.NET can be built from source via dotnet/source-build. This capability is expanding with dotnet/dotnet (which also uses source-build).

For distributions publishing packages, please follow .NET Packaging Guidelines.