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

Ubuntu MATE 26.10 Release Notes

Lo and behold 👐, Ubuntu MATE 26.10 (Stonking Stingray) is here! 🎊 We are back…

6 days ago

How to Deploy Kiwix Server on Ubuntu VPS

This article provides a guide demonstrating how to deploy Kiwix Server on Ubuntu VPS. What…

6 days ago

How to Host a Discord Bot on Ubuntu VPS

This article provides a guide demonstrating how to host a Discord bot on Ubuntu VPS.…

1 week ago

Myna speech-to-text is now available as a technology preview

A few months ago, we introduced Myna, our project to bring private, local speech-to-text dictation…

1 week ago

What’s new in security for Ubuntu 26.10?

Ubuntu 26.10 “Stonking Stingray” arrives at a time when AI tools are accelerating vulnerability discovery.…

2 weeks ago

Devpack for Rust: Zero to Rust in seconds

One of the best things about Rust is how easy it is to get started.…

2 weeks ago