title | description | author | ms.author | ms.date | ms.custom |
---|---|---|---|---|---|
Install .NET on CentOS Linux |
Demonstrates the various ways to install .NET SDK and .NET Runtime on CentOS Linux. |
adegeo |
adegeo |
05/04/2023 |
linux-related-content |
.NET is supported on CentOS Linux. This article describes how to install .NET on CentOS Linux. If you need to install .NET On CentOS Stream, see Install the .NET SDK or the .NET Runtime on RHEL and CentOS Stream.
[!INCLUDE linux-intro-sdk-vs-runtime]
[!INCLUDE linux-install-package-manager-x64-vs-arm]
The following table is a list of currently supported .NET releases on CentOS Linux 7. These versions remain supported until either the version of .NET reaches end-of-support or the version of CentOS Linux is no longer supported.
CentOS Linux | .NET |
---|---|
7 | 7, 6 |
Warning
CentOS Linux 8 reached an early End Of Life (EOL) on December 31st, 2021. For more information, see the official CentOS Linux EOL page. Because of this, .NET isn't supported on CentOS Linux 8.
[!INCLUDE versions-not-supported]
[!INCLUDE linux-install-package-manager-x64-vs-arm]
[!INCLUDE preview installs don't support package managers]
[!INCLUDE package-manager uninstall notice]
[!INCLUDE linux-prep-intro-generic]
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
[!INCLUDE linux-yum-install-70]
[!INCLUDE package-manager-switcher]
This section provides information on common errors you may get while using the package manager to install .NET.
[!INCLUDE linux-install-package-manager-x64-vs-arm]
[!INCLUDE package-manager-failed-to-fetch-rpm]
For more information about solving these problems, see Troubleshoot fxr
, libhostfxr.so
, and FrameworkList.xml
errors.
[!INCLUDE linux-rpm-install-dependencies]