Skip to content

Latest commit

 

History

History
78 lines (46 loc) · 3.08 KB

linux-centos.md

File metadata and controls

78 lines (46 loc) · 3.08 KB
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

Install the .NET SDK or the .NET Runtime on CentOS Linux

.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]

Supported distributions

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]

Install preview versions

[!INCLUDE preview installs don't support package managers]

Remove preview versions

[!INCLUDE package-manager uninstall notice]

CentOS Linux 7

[!INCLUDE linux-prep-intro-generic]

sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm

[!INCLUDE linux-yum-install-70]

How to install other versions

[!INCLUDE package-manager-switcher]

Troubleshoot the package manager

This section provides information on common errors you may get while using the package manager to install .NET.

Unable to find package

[!INCLUDE linux-install-package-manager-x64-vs-arm]

Failed to fetch

[!INCLUDE package-manager-failed-to-fetch-rpm]

Errors related to missing fxr, libhostfxr.so, or FrameworkList.xml

For more information about solving these problems, see Troubleshoot fxr, libhostfxr.so, and FrameworkList.xml errors.

Dependencies

[!INCLUDE linux-rpm-install-dependencies]

Next steps