Get the App
SLTechnology News&Howtos  ›  Servers  › 

CentOS 7 installs .NET Core

Shulou Source: shulou.com Published: 2022-06-03 09:42:19 12月06日 Update

Package Manager installation is supported only on x64 architectures. Other architectures, such as ARM, must manually install the. NET Core SDK or manually install the. NET Core runtime.

Register Microsoft Keys and Sources

Before installing. NET, you need:

Register a Microsoft key.

Register the product repository.

Install required dependencies.

You only need to do this once per computer. rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm Install.NET Core SDK

Update the products available for installation and install the. NET Core SDK. yum install dotnet-sdk-3.1

Install ASP.NET Core Runtime

Update the products available for installation, and then install the ASP.NET runtime.

yum install aspnetcore-runtime-3.1

Install. NET Core Runtime

Update the products available for installation, and then install the. NET Core runtime.

yum install dotnet-runtime-3.1

When installing yum install dotnet-sdk-3.1, it seems that ASP.NET Core and. NET Core are installed at the same time. The installation of the latter two product features will prompt no update.

Install View version info dotnet --info

The version of SDK or runtime to install. This article always provides a description of the latest supported version. Valid options are any published version, for example:

3.0

2.2

2.1

Microsoft official website: docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-centos7

Tags: Run product version update system architecture key manual structure support valid information function at the same time computer Microsoft reference storage prompt management Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Xiaomi Apple vpn macOS