Rocky Linux 8
Sponsored Link

.NET Core 3.1 : インストール2021/08/02

 
.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
================================================================================
Installing:
 dotnet-hostfxr-3.1             x86_64 3.1.17-1.el8_4.rocky.2   appstream 165 k
 dotnet-runtime-3.1             x86_64 3.1.17-1.el8_4.rocky.2   appstream  27 M
 dotnet-sdk-3.1                 x86_64 3.1.117-1.el8_4.rocky.2  appstream  40 M
 dotnet-targeting-pack-3.1      x86_64 3.1.17-1.el8_4.rocky.2   appstream 2.0 M
 dotnet-templates-3.1           x86_64 3.1.117-1.el8_4.rocky.2  appstream 2.0 M
Installing dependencies:
 aspnetcore-runtime-3.1         x86_64 3.1.17-1.el8_4.rocky.2   appstream 6.2 M
 aspnetcore-targeting-pack-3.1  x86_64 3.1.17-1.el8_4.rocky.2   appstream 1.1 M
 dotnet-apphost-pack-3.1        x86_64 3.1.17-1.el8_4.rocky.2   appstream  73 k
 dotnet-host                    x86_64 5.0.8-2.el8_4.rocky.1    appstream 108 k
 lttng-ust                      x86_64 2.8.1-11.el8             appstream 257 k
 netstandard-targeting-pack-2.1 x86_64 5.0.205-2.el8_4.rocky.1  appstream 1.5 M

Transaction Summary
================================================================================
Install  11 Packages
.....
.....

[root@dlp ~]#
dotnet --version

3.1.117

# Hello World で動作確認

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


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

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

Restore succeeded.

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello World!
関連コンテンツ