Install .NET on Linux
This article describes how .NET is available on various Linux distributions. .NET can be installed by a package manager, snap, or manually. .NET is also available as a container image.
Packages
Starting with .NET 9, Microsoft only publishes packages for supported Linux distributions that don't publish their own packages. Packages are published in the Microsoft package repository at https://packages.microsoft.com/. This includes the following Linux distributions:
- Azure Linux 3.0
- Debian
- openSUSE Leap
- SUSE Enterprise Linux
The following Linux distributions officially support .NET, and publish their own .NET packages:
- Azure Linux 2.0 (CBL-Mariner)
- Alpine
- CentOS Stream
- Fedora
- Red Hat Enterprise Linux (RHEL)
- Ubuntu
Snap
.NET SDK snap packages are provided by and maintained by Canonical. Snaps are a great alternative to the package manager built into your Linux distribution.
Manual installation
You can install .NET manually in the following ways:
You may need to install .NET dependencies if you install .NET manually.