Install .NET on Linux in 2026: Which Version and Feed

Updated

Microsoft .NET logo

The product is called “.NET”, not “.NET Core”, and has been since 5.0, released 2020-11-10 per Microsoft’s own release notes — its docs list the unsupported releases as “.NET 7, .NET 6, .NET 5, .NET Core 3.1, .NET Core 3.0, .NET Core 2.2 …”, and that is exactly where the name changed. The current long-term release is .NET 10. On Fedora the whole install is sudo dnf install dotnet-sdk-10.0; on current Ubuntu it is sudo apt-get install -y dotnet-sdk-10.0 with no Microsoft repository step.

dotnet-sdk-6.0 reached end of support on 2024-11-12 and receives no security fixes. Installing it today puts an unpatched runtime on a server.

The release table, from Microsoft’s machine-readable index

Fetched from dotnet/core on 2026-08-11 and printed unedited except for dropping columns:

channel  latest-release   date         type   phase        eol-date
11.0     11.0.0-preview.7 2026-08-11   sts    preview      —
10.0     10.0.11          2026-08-11   lts    active       2028-11-14
9.0      9.0.19           2026-08-11   sts    maintenance  2026-11-10
8.0      8.0.30           2026-08-11   lts    maintenance  2026-11-10
7.0      7.0.20           2024-05-28   sts    eol          2024-05-14
6.0      6.0.36           2024-11-12   lts    eol          2024-11-12
5.0      5.0.17           2022-05-10   sts    eol          2022-05-10
3.1      3.1.32           2022-12-13   lts    eol          2022-12-13

Two things follow. Pick 10.0 unless something forces you otherwise — it is the only channel in “active” support, and both 8.0 and 9.0 leave support on 2026-11-10, three months after this was written. And 3.1 is where “Core” ends: every channel from 5.0 up is just “.NET”. If a tutorial says “.NET Core 6”, it is describing a version that never carried that name.

Installing on Ubuntu: use the Ubuntu feeds, not Microsoft’s

Downloading packages-microsoft-prod.deb, registering the Microsoft feed and installing from it is not the route for Ubuntu 24.04 and later. Microsoft Learn’s Ubuntu page (ms.date 2026-04-23) says, for every currently supported Ubuntu release from 24.04 onward, verbatim:

“.NET is available in the Ubuntu package manager feeds. The Microsoft package repository no longer contains .NET packages for Ubuntu.”

For 22.04, where both feeds still carry packages: “you should only use one or the other to install .NET. Microsoft recommends that you use the Ubuntu package manager feeds.” There is also an architecture limit, which matters on Arm servers and Raspberry Pi: “Using a package manager to install .NET from the Microsoft package feed only supports the x64 architecture. Other architectures, such as Arm64, aren’t supported by the Microsoft package feed. Use the Ubuntu feeds or manually install .NET.”

An important nuance: registering the Microsoft feed does not fail loudly. packages-microsoft-prod.deb is still served — these URLs all returned HTTP 200 when checked on 2026-08-11:

https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb   http=200
https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb   http=200
https://packages.microsoft.com/config/opensuse/15/prod.repo                      http=200
https://packages.microsoft.com/keys/microsoft.asc                                http=200
https://dot.net/v1/dotnet-install.sh                                             http=200

So the wget and dpkg -i steps for the Microsoft feed still succeed; you register a feed that has nothing in it for your distribution, and only the apt install at the end goes wrong. Worse, having both feeds configured is the documented cause of the “package mix up” failures Microsoft has a whole troubleshooting article about. I could not run the apt step on Linux, so what fails and how is cited, not observed. The release table and the URL statuses above are snapshots from 2026-08-11; dot-net-core-install-guide.sh re-fetches Microsoft’s release index and re-checks the URLs, so either can be falsified the day it goes stale, and it skips rather than fails when there is no network.

What to actually run

Per-distribution, from Microsoft Learn, cited not run:

Ubuntu 24.04+ / Fedora 43-44:   sudo apt-get install -y dotnet-sdk-10.0
                                sudo dnf install dotnet-sdk-10.0

Ubuntu 22.04 (10.0 via backports):
                                sudo add-apt-repository ppa:dotnet/backports
                                sudo apt-get update && sudo apt-get install -y dotnet-sdk-10.0

The distribution-neutral option is the install script at https://dot.net/v1/dotnet-install.sh, which is also the only supported route for preview builds — Microsoft: “Preview and release candidate versions of .NET aren’t available in package repositories.” Download it and read it before you run it. curl … | sudo bash hands root to whatever that URL returns at the moment you run it, with no chance to inspect or pin — and dot.net/v1/dotnet-install.sh is a redirect, resolving here to https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh, 63,563 bytes on 2026-08-11. Fetch it to a file, look at it, then execute. There is also no reason to give it root: reading the downloaded copy, its install location is $HOME/.dotnet unless you set DOTNET_INSTALL_DIR or pass --install-dir, so a normal user account is enough. (That is from the script’s source, which I read; I did not run it, having no Linux machine and no dotnet to run it with.)

After installing, the first-project steps are dotnet new console -o HelloWorld, cd, dotnet run, and editing Program.cs. dotnet --info is the command to paste when asking for help, because it shows the SDKs, the runtimes and the RID, and most “it works on my machine” .NET issues on Linux are a mismatch between those three.

Photo of author
Sudhir P. founded HeatWare.com in 1999 and has built and operated it full-stack ever since; it is now used by more than 88,000 people. He writes here about the PostgreSQL, MySQL, Linux and DevOps work that keeps it running. Articles are rewritten only after the commands in them have actually been run, and the verification scripts are published alongside them so anyone can check the claims. Reach him at blog@heatware.net.