How to uninstall dotnet from Ubuntu?
1 min readNov 21, 2021
How to clean up dotnet
from Ubuntu? To remove old dotnet
versions from Ubuntu follow the steps:
1- List all dotnet
packages
sudo apt — installed list | grep "dotnet"
2- Remove them one by one. Change this list according to the output command of step 1:
Change this list according to the output command of step 1.
sudo apt-get remove - purge -y dotnet-host
sudo apt-get remove - purge -y dotnet-hostfxr-5.0
sudo apt-get remove - purge -y dotnet-runtime-5.0
sudo apt-get remove - purge -y dotnet-runtime-deps-5.0
sudo apt-get remove - purge -y dotnet-sdk-5.0
sudo apt-get remove - purge -y dotnet-targeting-pack-5.0
sudo apt-get remove - purge -y dotnet-apphost-pack-5.0
sudo apt-get remove - purge -y dotnet-runtime-6.0
sudo apt-get remove - purge -y dotnet-hostfxr-6.0
sudo apt-get remove - purge -y dotnet-runtime-deps-6.0
sudo apt-get remove - purge -y dotnet-targeting-pack-6.0
sudo apt-get remove --purge -y dotnet-apphost-pack-6.0
sudo apt-get remove --purge -y dotnet-host/now 6.0.0
sudo apt-get remove - purge -y dotnet-apphost-pack-6.0
I’m Alper Ebicoglu 🧑🏽💻 ABP Framework Core Team Member
Follow me for the latest news about .NET and software development:
📌 twitter.com/alperebicoglu
📌 github.com/ebicoglu
📌 linkedin.com/in/ebicoglu
📌 medium.com/@alperonline