1, into a public library keys
rpm --import https://packages.microsoft.com/keys/microsoft.asc
2, introduced .Net Core yum repository
rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
3, install the update library
yum update
4, install the .NET core
runtime hosting environment: yum install aspnetcore-runtime-2.1
or install
compile / development environment: yum install dotnet-sdk-2.1
5. When prompted, enter the command y
dotnet --version
dotnet --info