Ubuntu 22.04 natively supports Microsoft .NET 6

After a few months of togetherness between Microsoft and Ubuntu, they both are working hard and making it easier for users to use .NET in Ubuntu. The latest report shared by Microsoft .NET Blog that .NET 6 is available on Ubuntu and can be installed with just one command “apt install dotnet6”.

There are multiple packages available and users can install .NET6 SDK, ASP.NET Core or .NET runtime with a simple apt command. There are also some caveats at the moment, like no Arm64 support, no .NET7 builds, no Linux support for .NET MAUI workloads, etc.

Microsoft and Canonical also collaborated to bring .NET to Chiseled Ubuntu Containers. Chiseling “offers the smallest container footprint while still being the Ubuntu you know and trust.”

Install .NET 6 on Ubuntu

With this new addition to Canonical’s repositories, installing and keeping .NET and ASP.NET up to date on Ubuntu 22.04 LTS is straightforward:

# quickly install a bundle with both the SDK and the runtime
sudo apt update && sudo apt install dotnet6
# or cherry-pick only the dependencies you need to develop or run
sudo apt install dotnet-sdk-6.0
sudo apt install dotnet-runtime-6.O
sudo apt install aspnetcore-runtime-6.0

If you like our news and you want to be the first to get notifications of the latest news, then follow us on Twitter and Facebook page and join our Telegram channel. Also, you can follow us on Google News for regular updates.

Leave a Comment