CentOS 8
Sponsored Link

.NET Core 2.1 : Install
2019/12/12
 
Install .NET Core 2.1.
[1] It's possible to install .NET Core from AppStream.
[root@dlp ~]#
dnf -y install dotnet

Dependencies resolved.
================================================================================
 Package                  Arch        Version              Repository      Size
================================================================================
Installing:
 dotnet                   x86_64      2.1.509-1.el8_0      AppStream       11 k
Installing dependencies:
 dotnet-host              x86_64      2.1.13-1.el8_0       AppStream       91 k
 dotnet-host-fxr-2.1      x86_64      2.1.13-1.el8_0       AppStream      139 k
 dotnet-runtime-2.1       x86_64      2.1.13-1.el8_0       AppStream       21 M
 dotnet-sdk-2.1           x86_64      2.1.509-1.el8_0      AppStream       11 k
 dotnet-sdk-2.1.5xx       x86_64      2.1.509-1.el8_0      AppStream       40 M
 lttng-ust                x86_64      2.8.1-9.el8          AppStream      257 k
 libicu                   x86_64      60.2-7.el8           BaseOS         8.8 M
 userspace-rcu            x86_64      0.10.1-2.el8         BaseOS         101 k

Transaction Summary
================================================================================
Install  9 Packages
.....
.....

[root@dlp ~]#
dotnet --version

2.1.509

# verify to create Hello World

[root@dlp ~]#
dotnet new console -o helloworld

Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
Getting ready...
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on helloworld/helloworld.csproj...
  Restoring packages for /root/helloworld/helloworld.csproj...
  Installing Microsoft.NETCore.DotNetAppHost 2.1.0.
  Installing Microsoft.NETCore.DotNetHostResolver 2.1.0.
  Installing Microsoft.NETCore.DotNetHostPolicy 2.1.0.
  Installing NETStandard.Library 2.0.3.
  Installing Microsoft.NETCore.Platforms 2.1.0.
  Installing Microsoft.NETCore.Targets 2.1.0.
  Installing Microsoft.NETCore.App 2.1.0.
  Generating MSBuild file /root/helloworld/obj/helloworld.csproj.nuget.g.props.
  Generating MSBuild file /root/helloworld/obj/helloworld.csproj.nuget.g.targets.
  Restore completed in 4.94 sec for /root/helloworld/helloworld.csproj.

Restore succeeded.

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello World!
Matched Content