CentOS8.3にasp.net coreをインストールする方法

1.dotnetパッケージをインストール
# sudo yum install dotnet-sdk-5.0

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Installed:
aspnetcore-runtime-5.0-5.0.2-2.el8_3.x86_64
aspnetcore-targeting-pack-5.0-5.0.2-2.el8_3.x86_64
dotnet-apphost-pack-5.0-5.0.2-2.el8_3.x86_64
dotnet-host-5.0.2-2.el8_3.x86_64
dotnet-hostfxr-5.0-5.0.2-2.el8_3.x86_64
dotnet-runtime-5.0-5.0.2-2.el8_3.x86_64
dotnet-sdk-5.0-5.0.102-2.el8_3.x86_64
dotnet-targeting-pack-5.0-5.0.2-2.el8_3.x86_64
dotnet-templates-5.0-5.0.102-2.el8_3.x86_64
lttng-ust-2.8.1-11.el8.x86_64
netstandard-targeting-pack-2.1-5.0.102-2.el8_3.x86_64
Complete!
略 Installed: aspnetcore-runtime-5.0-5.0.2-2.el8_3.x86_64 aspnetcore-targeting-pack-5.0-5.0.2-2.el8_3.x86_64 dotnet-apphost-pack-5.0-5.0.2-2.el8_3.x86_64 dotnet-host-5.0.2-2.el8_3.x86_64 dotnet-hostfxr-5.0-5.0.2-2.el8_3.x86_64 dotnet-runtime-5.0-5.0.2-2.el8_3.x86_64 dotnet-sdk-5.0-5.0.102-2.el8_3.x86_64 dotnet-targeting-pack-5.0-5.0.2-2.el8_3.x86_64 dotnet-templates-5.0-5.0.102-2.el8_3.x86_64 lttng-ust-2.8.1-11.el8.x86_64 netstandard-targeting-pack-2.1-5.0.102-2.el8_3.x86_64 Complete!
略
Installed:
  aspnetcore-runtime-5.0-5.0.2-2.el8_3.x86_64
  aspnetcore-targeting-pack-5.0-5.0.2-2.el8_3.x86_64
  dotnet-apphost-pack-5.0-5.0.2-2.el8_3.x86_64
  dotnet-host-5.0.2-2.el8_3.x86_64
  dotnet-hostfxr-5.0-5.0.2-2.el8_3.x86_64
  dotnet-runtime-5.0-5.0.2-2.el8_3.x86_64
  dotnet-sdk-5.0-5.0.102-2.el8_3.x86_64
  dotnet-targeting-pack-5.0-5.0.2-2.el8_3.x86_64
  dotnet-templates-5.0-5.0.102-2.el8_3.x86_64
  lttng-ust-2.8.1-11.el8.x86_64
  netstandard-targeting-pack-2.1-5.0.102-2.el8_3.x86_64

Complete!

2.バージョンを確認
# dotnet –version
5.0.102

CentOS

Posted by arkgame