CentOS Stream 8
Sponsored Link

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

Dependencies resolved.
=================================================================================================================
 Package                          Arch    Version                                                Repo        Size
=================================================================================================================
Installing:
 dotnet-hostfxr-6.0               x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  156 k
 dotnet-runtime-6.0               x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream   23 M
 dotnet-sdk-6.0                   x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream   71 M
 dotnet-targeting-pack-6.0        x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  883 k
 dotnet-templates-6.0             x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  3.5 M
Installing dependencies:
 aspnetcore-runtime-6.0           x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  6.9 M
 aspnetcore-targeting-pack-6.0    x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  1.5 M
 dotnet-apphost-pack-6.0          x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  3.9 M
 dotnet-host                      x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  109 k
 lttng-ust                        x86_64  2.8.1-11.el8                                           appstream  259 k
 netstandard-targeting-pack-2.1   x86_64  6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8 appstream  1.5 M

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

[root@dlp ~]#
dotnet --version

6.0.100-rc.2.21503.1

# Hello World で動作確認

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


Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100-rc.2.21503.1

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
The template "Console App" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /root/helloworld/helloworld.csproj...
  Determining projects to restore...
  Restored /root/helloworld/helloworld.csproj (in 123 ms).
Restore succeeded.

[root@dlp ~]#
cd helloworld

[root@dlp helloworld]#
dotnet run

Hello, World!
関連コンテンツ