Categories: Ubuntu

Install .NET 10 (Preview) in Ubuntu via PPA

For testing purpose, Microsoft .NET 10 (preview version so far) is available to install in Ubuntu 22.04, Ubuntu 24.04, and 25.04 through PPA.

.NET 10 is the next LTS (Long Term Support) release with 3 years of support. It’s so far in preview development stage, while the full release is expected in November 2025.

What’s New in .NET 10

.NET 10 introduces significant enhancements to the JIT compiler. It improved code generation by placing struct members in registers rather than on the stack, eliminating memory accesses, and expanded devirtualize method calls to cover array interface methods.

It as well improved JIT inlining, method devirtualization, and stack allocations, AVX10.2 support. And, nativeAOT’s type preinitializer now supports all variants of the conv.* and neg opcodes.

The .NET 10 libraries introduced new APIs in cryptography, globalization, numerics, serialization, collections, diagnostics, and when working with ZIP files.

It also added new JSON serialization options, and Windows Cryptography API: Next Generation (CNG) support for Post-Quantum Cryptography (PQC).

For the SDK, it introduced new dnx tool execution script and added support for Microsoft.Testing.Platform in dotnet test, platform-specific .NET tools, one-shot tool execution with dotnet tool exec, and CLI introspection with --cli-schema.

Other changes include Blazor WebAssembly preloading, automatic memory pool eviction, enhanced form validation, and passkey support for Identity in ASP.NET Core 10.0.

And, there are new features and enhancements to C# 14, F#, Visual Basic, .NET MAUI, and more. For details about the release, see the official what’s new page.

Install .NET 10 Preview from PPA

Microsoft provides official .NET 10 preview packages for Linux, Window, and macOS. They are available to download at this page.

For Linux, they are portable tarballs that contain all the executable and run-time libraries that can be run directly from terminal.

dotnet 10 portable tarball

For those who prefer native .deb package, Ubuntu Team maintains a PPA repository that contains the .NET 10 preview for all current Ubuntu releases on amd64, arm64, ppc64el, and s390x platforms.

To add the PPA, press Ctrl+Alt+T on keyboard to open terminal and run command:

sudo add-apt-repository ppa:dotnet/previews

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

Next, install .NET deb package by running command:

sudo apt install dotnet10

For Linux Mint, you need to run sudo apt update first to refresh package cache.

This command will install both the SDK and run-times, while you may replace dotnet10 with dotnet-sdk-10.0, aspnetcore-runtime-10.0, or dotnet-runtime-10.0 to install only the sdk or runtime as you prefer.

If you also have .NET 8 or 9 installed on your system, then you have multiple SDK or run-times. To check them, use command:

dotnet --list-runtimes && dotnet --list-sdks

Then you may choose a runtime via dotnet -r or select SDK by using global.json file.

{
      "sdk": {
        "version": "8.0.108"
      }
    }

Uninstall:

To uninstall .NET 10 package installed from PPA, use command (Ctrl+Alt+T):

sudo apt remove --autoremove dotnet10 aspnetcore-runtime-10.0 dotnet-runtime-10.0 dotnet-sdk-10.0

Then, remove the PPA repository either by “Software & Updates” utility under “Other Software” tab, or by running command below in terminal:

sudo add-apt-repository --remove ppa:dotnet/previews

For Linux Mint, either use Software Sources to remove PPA, or run sudo apt update afterward to refresh cache.

The post Install .NET 10 (Preview) in Ubuntu via PPA appeared first on Osgrove.

Ubuntu Server Admin

Recent Posts

How to avoid package End of Life through backporting

In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…

3 days ago

Showcasing open design in action: Loughborough University design students explore open source projects

Last year, we collaborated with two design student teams from Loughborough University in the UK.…

7 days ago

Canonical Ubuntu and Ubuntu Pro now available on AWS European Sovereign Cloud

January 15, 2026 – Canonical, the publisher of Ubuntu and provider of open source security,…

1 week ago

How to install GitLab on Ubuntu 24.04

How to install GitLab on Ubuntu 24.04 will be explained in this blog post with…

1 week ago

How to Set Up OpenVPN Access Server on Ubuntu 24.04 (VM) & Connect Using OpenVPN Connect

Do you know what was always there but has increased multiple times in the last…

2 weeks ago

How to build DORA-ready infrastructure with verifiable provenance and reliable support

The Digital Operational Resilience Act (DORA) came into force across the EU on January 17,…

2 weeks ago