添加 rpm 源
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
开始yum安装
sudo yum install dotnet-sdk-2.2
检查安装是否正确
dotnet