CentOS Stream 8
Sponsored Link

.NET Core 3.1 : インストール2021/04/09

.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            Repository   Size
 dotnet-hostfxr-3.1               x86_64   3.1.13-2.el8       appstream   166 k
 dotnet-runtime-3.1               x86_64   3.1.13-2.el8       appstream    27 M
 dotnet-sdk-3.1                   x86_64   3.1.113-2.el8      appstream    40 M
 dotnet-targeting-pack-3.1        x86_64   3.1.13-2.el8       appstream   2.0 M
 dotnet-templates-3.1             x86_64   3.1.113-2.el8      appstream   2.0 M
Installing dependencies:
 aspnetcore-runtime-3.1           x86_64   3.1.13-2.el8       appstream   6.2 M
 aspnetcore-targeting-pack-3.1    x86_64   3.1.13-2.el8       appstream   1.1 M
 dotnet-apphost-pack-3.1          x86_64   3.1.13-2.el8       appstream    74 k
 dotnet-host                      x86_64   5.0.4-2.el8        appstream   109 k
 lttng-ust                        x86_64   2.8.1-11.el8       appstream   259 k
 netstandard-targeting-pack-2.1   x86_64   5.0.104-2.el8      appstream   1.5 M

Transaction Summary
Install  11 Packages

[root@dlp ~]#
dotnet --version


# Hello World で動作確認

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

Welcome to .NET Core 3.1!
SDK Version: 3.1.113

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

Restore succeeded.

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello World!