View a markdown version of this page

.NET in AL2023 - Amazon Linux 2023

.NET in AL2023

AL2023 currently provides the .NET runtime and SDK, versions 8.0, 9.0, and 10.0. .NET 6.0 reached end-of-life in November 2024 and is no longer supported. Each version is supported for the same period of time as upstream .NET. For more information, see Package support statements.

Migrating to newer .NET versions

The upstream .NET community provides migration documentation for moving:

Installing .NET on AL2023

Multiple versions of the .NET runtime can be installed simultaneously on AL2023. However, the dotnet and dotnet-host packages are shared across SDK versions, so only one SDK version can own the /usr/bin/dotnet CLI entry point at a time. Installing a different SDK version will update the shared dotnet command to that version.

To install a specific version of the .NET SDK, use the dnf command:

sudo dnf install dotnet-sdk-10.0

Replace 10.0 with the desired version (8.0, 9.0, or 10.0).

To install only the runtime without the SDK:

sudo dnf install dotnet-runtime-9.0