skip to main content

.NET Core on Linux

install, uninstall etc.

Remove old version

cd
sudo rm -rf dotnet
sudo rm -rf /usr/local/bin/dotnet 
rm -rf .dotnet/
rm -rf .templateengine/
rm -rf .nuget/
rm -rf dotnet.tar.gz
sudo updatedb

Install current version

Change the version as needed

curl -sSL -o dotnet.tar.gz https://aka.ms/dotnet-sdk-2.0.0-linux-x64
mkdir -p ~/dotnet && tar zxf dotnet.tar.gz -C ~/dotnet
export PATH=$PATH:$HOME/dotnet
dotnet --version