CentOS 7.x is required, this won’t work older versions.
First, enable the dotnet repository for yum:
yum install centos-release-dotnet
Next, install the runtime package:
yum info rh-dontnet20 rh-dotnet20-runtime
The following packages will be installed:
===========================================
Package
===========================================
Installing:
rh-dotnet20
Installing for dependencies:
rh-dotnet20-dotnet
rh-dotnet20-dotnet-host
rh-dotnet20-dotnet-runtime-2.0
rh-dotnet20-dotnet-sdk-2.0
rh-dotnet20-libcurl
rh-dotnet20-lttng-ust
rh-dotnet20-userspace-rcu
Transaction Summary
===========================================
Install 1 Package (+7 Dependent packages)
Total download size: 54 M
Installed size: 175 M
And that’s it! The .net core 2.0 runtime is installed in /opt/rh/rh-dotnet20
# /opt/rh/rh-dotnet20/root/bin/dotnet --version
2.0.3
Kestrel hosted asp.net apps can be served, preferably thru a reverse proxy server if the service is to be exposed to the public. Microsoft has instructions on how to setup apache + kestrel or Kestrel + NGINX, both with systemd monitoring for the Kestrel microservice.
Leave a Reply