0)预先安装好 .net core 2.2 sdk
# rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
# yum update
# yum install dotnet-sdk-2.2
1)下载 dotnet-sdk-3.0.100-preview5-011568-linux-x64.tar.gz(链接)
# wget -c https://download.visualstudio.microsoft.com/download/pr/7e4b403c-34b3-4b3e-807c-d064a7857fe8/95c738f08e163f27867e38c602a433a1/dotnet-sdk-3.0.100-preview5-011568-linux-x64.tar.gz
2)将安装文件解压到 /usr/share/dotnet 文件夹即可
# tar zxf dotnet-sdk-3.0.100-preview5-011568-linux-x64.tar.gz -C /usr/share/dotnet
说明中的源只能安装正式版的 现在是2.2 安装不了3.0
@毕殿卿: 已更新回答,亲测有效
预先安装2.2是避免了环境变量的设置吗?
@毕殿卿: 不是