Categories: Uncategorized

How to Uninstall .Net Framework on Linux?

With the advent of .NET Core, the world of software development has witnessed significant improvements in Linux support. Whether you’re working with .NET Core or the newer versions like .NET 5, 6, or 7, running it on Linux has become more accessible than ever before. And if you ever find the need to uninstall .NET Core from your Linux system, worry not, as it can be done effortlessly using the package manager specific to your Linux distribution.

One of the remarkable aspects of .NET Core and its subsequent versions is how they have bridged the gap between different operating systems. Linux, which was once considered primarily for open-source software development, has now become a viable choice for .NET developers as well. The enhanced Linux support offered by .NET Core has opened up a world of possibilities and flexibility.

Uninstalling .NET Core from your Linux system is a straightforward process. The package manager of your Linux distribution comes to the rescue, facilitating a seamless removal experience. The package manager acts as a central hub for managing software installations, updates, and removals, ensuring that your system remains organized and clutter-free.

Here are the general steps for some common package managers:

For Ubuntu/Debian-based systems:

bash

sudo apt remove --purge dotnet-runtime-3.1 sudo apt remove --purge dotnet-sdk-3.1

Replace 3.1 with the version you want to uninstall.


For CentOS/RHEL-based systems:

bash

sudo yum remove dotnet-runtime-3.1 sudo yum remove dotnet-sdk-3.1

For Fedora:

bash

sudo dnf remove dotnet-runtime-3.1 sudo dnf remove dotnet-sdk-3.1

Replace 3.1 with the version you want to uninstall.

If you installed .NET from the official Microsoft repository, you might need to remove the repository configuration as well.
After removing the packages, you can check if the .NET runtime and SDK are completely removed by running:

bash

dotnet --version

If the command still shows a version, it means that .NET is still installed.
Please note that the specific commands might differ based on the Linux distribution and the version of .NET you have installed. Always refer to the official documentation or help specific to your distribution for accurate information. 

Farhan Mirajkar

Recent Posts

Mastering the Resolution of http error 500.31 – failed to load asp.net core runtime: A Complete Guide

i. If you’re encountering the “HTTP Error 500.31 - Failed to load ASP.NET Core runtime”…

1 month ago

Introducing .Net Core Shared Hosting on the Linux Platform

We are excited to announce the launch of .Net Core Shared Hosting on the Linux…

2 months ago

Blazor Or React: Which One is Right for You?

Blazor: Pros: C# Coolness: If you dig C#, Blazor lets you use it for both…

2 months ago

Everything you need to know about the Repeater Control Class in ASP.Net!

The Repeater Control is a powerful tool in ASP.NET for creating dynamic, data-driven content in web applications.…

2 months ago

How to uninstall .Net Framework on Mac?

Have you ever found yourself needing to uninstall the dotnet Framework on your Mac? Whether…

2 months ago

How to uninstall .Net Framework on Windows?

Uninstalling .NET Framework can vary based on your operating system. Here are general steps for…

2 months ago
Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.