CentOS 8
Sponsored Link

.NET Core 3.1 : インストール2019/12/12

.NET Core 3.1 をインストールします。
[1] AppStream からインストール可能です。
[root@dlp ~]#
dnf -y install dotnet-runtime-3.1 dotnet-sdk-3.1 dotnet-targeting-pack-3.1 dotnet-templates-3.1 dotnet-hostfxr-3.1

Dependencies resolved.
 Package                        Arch   Version                  Repo       Size
 dotnet-hostfxr-3.1             x86_64 3.1.10-1.el8_3           appstream 165 k
 dotnet-runtime-3.1             x86_64 3.1.10-1.el8_3           appstream  27 M
 dotnet-sdk-3.1                 x86_64 3.1.110-1.el8_3          appstream  40 M
 dotnet-targeting-pack-3.1      x86_64 3.1.10-1.el8_3           appstream 2.0 M
 dotnet-templates-3.1           x86_64 3.1.110-1.el8_3          appstream 1.8 M
Installing dependencies:
 aspnetcore-runtime-3.1         x86_64 3.1.10-1.el8_3           appstream 6.2 M
 aspnetcore-targeting-pack-3.1  x86_64 3.1.10-1.el8_3           appstream 1.1 M
 dotnet-apphost-pack-3.1        x86_64 3.1.10-1.el8_3           appstream  73 k
 dotnet-host                    x86_64 5.0.0-0.6.preview8.el8   appstream 107 k
 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 5.0.100-0.6.preview8.el8 appstream 1.5 M
 userspace-rcu                  x86_64 0.10.1-2.el8             baseos    101 k

Transaction Summary
Install  13 Packages

[root@dlp ~]#
dotnet --version


# Hello World で動作確認

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

Welcome to .NET Core 3.1!
SDK Version: 3.1.110

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 90.97 ms for /root/helloworld/helloworld.csproj.

Restore succeeded.

An update for template pack Microsoft.DotNet.Common.ProjectTemplates.3.1::3.1.10 is available.
    install command: dotnet new -i Microsoft.DotNet.Common.ProjectTemplates.3.1::5.0.0

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello World!