1, before installing .NET, you need to register Microsoft key, register the product repository and install the required dependencies. Each machine only needs to complete one.
Sudo rpm Uvh https: // packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
2, product updates available for installation, and then install the .NET SDK.
sudo yum update sudo yum install dotnet-sdk-2.2
3. Verify that the installation was successful
dotnet --version