Dotnet Core is now available with the Linux OS.
The following are the steps to install .NET Core on CentOS and AlmaLinux
1. Log in to the Linux vps (CentOS and AlmaLinux) via SSH.
2. Open a terminal and run the following commands:
# sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
3. Update the available products and install the .NET SDK. In your terminal, run the following commands:
# sudo yum update
# sudo yum install dotnet-sdk-2.2
4. Verify the .NET version using the below command:
# dotnet --version/strong>
