1、注册 Microsoft 密钥和源
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
2、安装 .NET Core SDK
sudo yum install dotnet-sdk-3.1
3、安装 ASP.NET Core 运行时
sudo yum install aspnetcore-runtime-3.1
4、测试.NET SDK安装成功:
dotnet --version