.NET in AL2023
AL2023 currently provides the .NET
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