CentOS 8
Sponsored Link

.NET Core 3.1 : Install
2019/12/12
 
Install .NET Core 3.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   3.1.106-1.el8_2    AppStream    15 k
Installing dependencies:
 aspnetcore-runtime-3.1           x86_64   3.1.6-1.el8_2      AppStream   6.1 M
 aspnetcore-targeting-pack-3.1    x86_64   3.1.6-1.el8_2      AppStream   1.0 M
 dotnet-apphost-pack-3.1          x86_64   3.1.6-1.el8_2      AppStream    71 k
 dotnet-host                      x86_64   3.1.6-1.el8_2      AppStream   105 k
 dotnet-hostfxr-3.1               x86_64   3.1.6-1.el8_2      AppStream   163 k
 dotnet-runtime-3.1               x86_64   3.1.6-1.el8_2      AppStream    27 M
 dotnet-sdk-3.1                   x86_64   3.1.106-1.el8_2    AppStream    40 M
 dotnet-targeting-pack-3.1        x86_64   3.1.6-1.el8_2      AppStream   2.0 M
 dotnet-templates-3.1             x86_64   3.1.106-1.el8_2    AppStream   1.8 M
 libicu                           x86_64   60.3-2.el8_1       BaseOS      8.8 M
 lttng-ust                        x86_64   2.8.1-11.el8       AppStream   259 k
 netstandard-targeting-pack-2.1   x86_64   3.1.106-1.el8_2    AppStream   1.5 M
 userspace-rcu                    x86_64   0.10.1-2.el8       BaseOS      101 k

Transaction Summary
================================================================================
Install  14 Packages
.....
.....

[root@dlp ~]#
dotnet --version

3.1.106

# verify to create Hello World

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


Welcome to .NET Core 3.1!
---------------------
SDK Version: 3.1.106

----------------
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Find out what's new: https://aka.ms/dotnet-whats-new
Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Write your first app: https://aka.ms/first-net-core-app
--------------------------------------------------------------------------------------
Getting ready...
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on helloworld/helloworld.csproj...
  Restore completed in 79.89 ms for /root/helloworld/helloworld.csproj.

Restore succeeded.

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello World!
Matched Content