mkdir -p $HOME/dotnet/6.0 && tar zxf dotnet-sdk-6.0.427-linux-x64.tar.gz -C $HOME/dotnet/6.0
配置環境變數
sudo vi /etc/profile
export PATH=$PATH:$HOME/dotnet/6.0
export DOTNET_ROOT=$HOME/dotnet/6.0
最後重新整理配置檔案生效
source /etc/profile
驗證是否安裝成功
dotnet --version