CentOS 7 installs .NET Core
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