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
Packages are available for the following Linux distributions:
- Azure Linux
- Debian
- openSUSE Leap
- SUSE Enterprise Linux
Packages are published in the Microsoft package repository at https://packages.microsoft.com/. Distributions are selected per the policy defined at dotnet/core #9556.
The following Linux distributions publish their own .NET packages:
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 might need to install .NET dependencies if you install .NET manually.
Additional sources
.NET is also available from other sources. The packages and containers use a name similar to one of the following names:
- aspnet-runtime
- dotnet-runtime
- dotnet-sdk
- dotnet
Package managers
- https://formulae.brew.sh/cask/dotnet
- https://formulae.brew.sh/cask/dotnet-sdk
- https://ports.macports.org/port/dotnet-cli
- https://search.nixos.org/packages?query=dotnet
- https://archlinux.org
- https://aur.archlinux.org