0. 20200930 Dotnet Core Serial 1: Installation Uninstallation on CentOS 7 - lyonwang/TechNotes GitHub Wiki

Installation

Get installer script

wget https://dot.net/v1/dotnet-install.sh

Run Install

chmod +x dotnet-install.sh

Install Current version

./dotnet-install.sh -c 2.1

Install Specific version (ex: version 2.1)

./dotnet-install.sh -c Current

Set PATH & DOTNET_ROOT (append under .bashrc last line of code)

vi .bashrc
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet

Uninstallation (remove files and export command in .bashrc)

rm -Rf ~/.dotnet
vi .bashrc
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet