This article explains how to install and uninstall .NET on FunOS. Whether you’re a developer building .NET apps or a user who just wants to run .NET applications, you’ll find the right steps here.
Tip: Install the .NET SDK if you want to develop apps. If you only want to run apps, install the ASP.NET Core Runtime, which includes both the .NET Runtime and the ASP.NET Core Runtime.
What is .NET?
.NET is a free, open-source development platform created by Microsoft that enables developers to build a wide range of applications, including web, desktop, mobile, cloud, and IoT solutions. It supports multiple programming languages such as C#, F#, and Visual Basic, and provides a comprehensive set of libraries, tools, and runtime environments to help developers create high-performance applications.
There are two main components of .NET that users often interact with:
- .NET SDK (Software Development Kit): This includes everything needed to develop .NET applications, such as compilers, libraries, and command-line tools.
- .NET Runtime: This allows users to run applications that are built with .NET, even if they don’t need the full development environment.
For most users, installing the SDK is recommended if you’re planning to develop .NET applications. However, if you only want to run existing applications, the runtime is sufficient. In many cases, the ASP.NET Core Runtime is preferred because it includes both the base .NET Runtime and the ASP.NET Core components needed for web applications.
Supported FunOS Versions
This guide applies to:
- FunOS 22.04 (based on Ubuntu 22.04 LTS)
- FunOS 24.04 (based on Ubuntu 24.04 LTS)
- FunOS 24.10 / 25.04 (based on Ubuntu interim releases)
Installing .NET on FunOS
For FunOS 22.04 and 24.04
Install .NET 9 SDK
sudo add-apt-repository ppa:dotnet/backports
sudo apt update
sudo apt install dotnet-sdk-9.0
Install .NET 9 Runtime
sudo add-apt-repository ppa:dotnet/backports
sudo apt update
sudo apt install aspnetcore-runtime-9.0
Install .NET 8 SDK
sudo apt update
sudo apt install dotnet-sdk-8.0
Install .NET 8 Runtime
sudo apt update
sudo apt install aspnetcore-runtime-8.0
For FunOS 24.10 and 25.04
Install .NET 9 SDK
sudo apt update
sudo apt install dotnet-sdk-9.0
Install .NET 9 Runtime
sudo apt update
sudo apt install aspnetcore-runtime-9.0
Install .NET 8 SDK
sudo apt update
sudo apt install dotnet-sdk-8.0
Install .NET 8 Runtime
sudo apt update
sudo apt install aspnetcore-runtime-8.0
Verify Installation
After installation, run the following to verify the installed version:
dotnet --version
How to Uninstall .NET on FunOS
FunOS 22.04 and 24.04
Uninstall .NET 9 SDK
sudo apt remove --purge dotnet-sdk-9.0
sudo apt autoremove --purge
sudo add-apt-repository --remove ppa:dotnet/backports
sudo apt update
Uninstall .NET 9 Runtime
sudo apt remove --purge aspnetcore-runtime-9.0
sudo apt autoremove --purge
sudo add-apt-repository --remove ppa:dotnet/backports
sudo apt update
Uninstall .NET 8 SDK
sudo apt remove --purge dotnet-sdk-8.0
sudo apt autoremove --purge
Uninstall .NET 8 Runtime
sudo apt remove --purge aspnetcore-runtime-8.0
sudo apt autoremove --purge
FunOS 24.10 and 25.04
Uninstall .NET 9 SDK
sudo apt remove --purge dotnet-sdk-9.0
sudo apt autoremove --purge
Uninstall .NET 9 Runtime
sudo apt remove --purge aspnetcore-runtime-9.0
sudo apt autoremove --purge
Uninstall .NET 8 SDK
sudo apt remove --purge dotnet-sdk-8.0
sudo apt autoremove --purge
Uninstall .NET 8 Runtime
sudo apt remove --purge aspnetcore-runtime-8.0
sudo apt autoremove --purge
Additional Notes
- .NET 9 is a Standard Term Support (STS) release (18 months support)
- .NET 8 is a Long Term Support (LTS) release (3 years support)
Conclusion
Installing .NET on FunOS is straightforward, whether you’re using an LTS release like 24.04 or the latest interim release like 25.04. With just a few terminal commands, you can set up a powerful development environment or enable your system to run .NET-based applications. Be sure to keep your .NET version updated and choose the SDK or Runtime based on your needs.
Leave a Reply