Search code examples
security.net-corerhel

.NET Core Runtime only on Linux


I'm trying to figure out a deployment strategy for our RHEL server with .NET Core microservices.

I was hoping that we could use a .NET Core runtime on our production systems rather than an "SDK" version. The idea being that the runtime has less of an attack surface than perhaps the SDK would.

When I investigate the two options it seems I am downloading the exact same package:

yum install rh-dotnet22 -y

Why does Microsoft even bother making the distinction here? Is there something I'm unaware of? Is there a way to get runtimes only as opposed to SDKs?


Solution

  • yum install rh-dotnet22-dotnet-runtime-2.2 
    

    This should do what you want. I will try and work with Microsoft to get the docs updated and I will ask our RHEL 7 docs to be updated too.