Only Support Package Manager is installed on the x64 architecture. Other architectures (e.g., ARM) have to manually install .NET Core SDK or manually installed .NET Core runtime.
- Microsoft and the registration key source
before installing .NET, need to:
register Microsoft key.
Register your product repository.
Installation required dependencies.
Each computer only need to do this once.rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
- Install .NET Core SDK
updates are available for installation of the product, and then install the .NET Core SDK.yum install dotnet-sdk-3.1
Install ASP.NET Core runtime
updates are available for installation of the product, ASP.NET runtime and install it.yum install aspnetcore-runtime-3.1
Runtime installed .NET Core
updates are available for installed products, .NET Core runtime and install it.yum install dotnet-runtime-3.1
When you install yum install dotnet-sdk-3.1 and ASP.NET Core like simultaneously with the installation of .NET Core, behind the two product features you will be prompted to install the update no.
After installing Version information dotnet --info
version you want to install the SDK or runtime. Description always provide the latest supported version of this article. Effective options for any version published, for example:
3.0
2.2
2.1
Reference Microsoft's official website: https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-centos7