- Download .NET
- .NET 5.0 (recommended)
- .NET Core 3.1
- .NET Framework 4.8
- .NET 5.0 (recommended)
- .NET Core 3.1
- .NET 5.0 (recommended)
- .NET Core 3.1
- .NET Core
- .NET Framework
- Free. Cross-platform. Open source. Supported.
- Thank You to All the Contributors
- Ready to Get Started?
- Установка пакета SDK для .NET или среды выполнения .NET в RHEL Install the .NET SDK or the .NET Runtime on RHEL
- Регистрация подписки Red Hat Register your Red Hat subscription
- Поддерживаемые дистрибутивы Supported distributions
- Удалите предварительные версии Remove preview versions
- RHEL 8 ✔️ RHEL 8 ✔️
- Установка пакета SDK Install the SDK
- Установка среды выполнения Install the runtime
- RHEL 7 ✔️ .NET 5.0 RHEL 7 ✔️ .NET 5.0
- Установка пакета SDK Install the SDK
- Установка среды выполнения Install the runtime
- RHEL 7 ✔️ .NET Core 3.1 RHEL 7 ✔️ .NET Core 3.1
- Установка пакета SDK Install the SDK
- Установка среды выполнения Install the runtime
- Зависимости Dependencies
- Установка других версий How to install other versions
Download .NET
Downloads for .NET Framework and .NET Core, including ASP.NET and ASP.NET Core
Not sure where to start? See the Hello World in 10 minutes tutorial to install .NET and build your first app.
.NET 5.0 (recommended)
.NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Core 3.1
.NET Core is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Framework 4.8
.NET Framework is a Windows-only version of .NET for building any type of app that runs on Windows.
.NET 5.0 (recommended)
.NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Core 3.1
.NET Core is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET 5.0 (recommended)
.NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Core 3.1
.NET Core is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Core
.NET Core is a free, cross-platform, open-source developer platform for building many different types of applications.
.NET Framework
.NET Framework is a Windows-only version of .NET for building any type of app that runs on Windows.
Free. Cross-platform. Open source. Supported.
.NET is free. There are no fees or licensing costs, including for commercial use.
.NET is open-source and cross-platform, with free development tools for macOS, Windows, and Linux.
.NET is supported by Microsoft. Microsoft ships official releases that are built and tested on Microsoft-maintained servers in Azure and supported just like any Microsoft product.
Thank You to All the Contributors
.NET is open source and we are very thankful for the many contributions it receives from the community.
Ready to Get Started?
Our step-by-step tutorial will help you get .NET running on your computer.
Установка пакета SDK для .NET или среды выполнения .NET в RHEL Install the .NET SDK or the .NET Runtime on RHEL
.NET поддерживается в RHEL. .NET is supported on RHEL. В этой статье описано, как установить .NET в RHEL. This article describes how to install .NET on RHEL.
Если вы хотите разрабатывать приложения .NET, установите пакет SDK (включает среду выполнения). Install the SDK (which includes the runtime) if you want to develop .NET apps. Если нужно просто запустить приложения, установите среду выполнения. Or, if you only need to run apps, install the Runtime. Если вы устанавливаете среду выполнения, мы рекомендуем установить среду выполнения ASP.NET Core, так как она включает в себя среды выполнения .NET и ASP.NET Core. If you’re installing the Runtime, we suggest you install the ASP.NET Core Runtime as it includes both .NET and ASP.NET Core runtimes.
Если вы уже установили пакет SDK или среду выполнения, с помощью команд dotnet —list-sdks и dotnet —list-runtimes узнайте, какие версии установлены. If you’ve already installed the SDK or Runtime, use the dotnet —list-sdks and dotnet —list-runtimes commands to see which versions are installed. Дополнительные сведения см. в статье Проверка того, установлена ли платформа .NET. For more information, see How to check that .NET is already installed.
Регистрация подписки Red Hat Register your Red Hat subscription
Чтобы установить .NET из Red Hat в RHEL, сначала нужно зарегистрироваться с помощью диспетчера подписки Red Hat. To install .NET from Red Hat on RHEL, you first need to register using the Red Hat Subscription Manager. Если это еще не сделано в вашей системе либо вы точно не уверены, ознакомьтесь с документацией по продукту Red Hat для .NET. If this hasn’t been done on your system, or if you’re unsure, see the Red Hat Product Documentation for .NET.
Поддерживаемые дистрибутивы Supported distributions
В приведенной ниже таблице содержится список поддерживаемых сейчас выпусков .NET в RHEL 7 и RHEL 8. The following table is a list of currently supported .NET releases on both RHEL 7 and RHEL 8. Эти версии поддерживаются до того же времени, что и версия .NET или RHEL. These versions remain supported until either the version of .NET reaches end-of-support or the version of RHEL is no longer supported.
- Значок ✔️ означает, что версия RHEL или .NET поддерживается. A ✔️ indicates that the version of RHEL or .NET is still supported.
- Значок ❌ означает, что версия RHEL или версия .NET в таком выпуске RHEL не поддерживается. A ❌ indicates that the version of RHEL or .NET isn’t supported on that RHEL release.
- Если значок ✔️ стоит как напротив версии RHEL, так и напротив версии .NET, это значит, что такое сочетание ОС и .NET поддерживается. When both a version of RHEL and a version of .NET have ✔️, that OS and .NET combination is supported.
RHEL RHEL | .NET Core 2.1 .NET Core 2.1 | .NET Core 3.1 .NET Core 3.1 | .NET 5.0 .NET 5.0 |
---|---|---|---|
✔️ 8 ✔️ 8 | ✔️ 2.1 ✔️ 2.1 | ✔️ 3.1 ✔️ 3.1 | ✔️ 5.0 ✔️ 5.0 |
✔️ 7 ✔️ 7 | ✔️ 2.1 ✔️ 2.1 | ✔️ 3.1 ✔️ 3.1 | ✔️ 5.0 ✔️ 5.0 |
Следующие версии .NET больше не поддерживаются. The following versions of .NET are no longer supported. (но остаются доступными для скачивания): The downloads for these still remain published:
Удалите предварительные версии Remove preview versions
При использовании диспетчера пакетов для управления установкой .NET вы можете столкнуться с конфликтом, если ранее вы установили предварительную версию. When using a package manager to manage your installation of .NET, you may run into a conflict if you’ve previously installed a preview release. Диспетчер пакетов может интерпретировать выпуск, не являющийся предварительной версией, в качестве более ранней версии .NET. The package manager may interpret the non-preview release as an earlier version of .NET. Чтобы установить выпуск, не относящийся к предварительной версии, сначала удалите предварительные версии. To install the non-preview release, first uninstall the preview versions. Дополнительные сведения об удалении .NET см. в разделе Удаление среды выполнения .NET и пакета SDK. For more information about uninstalling .NET, see How to remove the .NET Runtime and SDK.
RHEL 8 ✔️ RHEL 8 ✔️
Платформа .NET включена в репозитории AppStream для RHEL 8. .NET is included in the AppStream repositories for RHEL 8.
Установка пакета SDK Install the SDK
Пакет SDK для .NET позволяет разрабатывать приложения с помощью .NET. The .NET SDK allows you to develop apps with .NET. При установке пакета SDK для .NET не нужно устанавливать соответствующую среду выполнения. If you install the .NET SDK, you don’t need to install the corresponding runtime. Чтобы установить пакет SDK для .NET, выполните приведенные ниже команды. To install the .NET SDK, run the following commands:
Установка среды выполнения Install the runtime
Среда выполнения ASP.NET Core позволяет запускать приложения, созданные с помощью версии .NET без поддержки среды выполнения. The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn’t provide the runtime. Приведенные ниже команды позволяют установить среду выполнения ASP.NET Core, которая больше всего совместима с .NET. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. В терминале выполните приведенные ниже команды. In your terminal, run the following commands:
В качестве альтернативы среде выполнения ASP.NET Core вы можете установить среду выполнения .NET без поддержки ASP.NET Core. Для этого в приведенной выше команде замените aspnetcore-runtime-5.0 на dotnet-runtime-5.0 . As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn’t include ASP.NET Core support: replace aspnetcore-runtime-5.0 in the previous command with dotnet-runtime-5.0 :
RHEL 7 ✔️ .NET 5.0 RHEL 7 ✔️ .NET 5.0
Следующая команда устанавливает пакет scl-utils : The following command installs the scl-utils package:
Установка пакета SDK Install the SDK
Пакет SDK для .NET позволяет разрабатывать приложения с помощью .NET. The .NET SDK allows you to develop apps with .NET . При установке пакета SDK для .NET не нужно устанавливать соответствующую среду выполнения. If you install the .NET SDK, you don’t need to install the corresponding runtime. Чтобы установить пакет SDK для .NET, выполните следующие команды. To install .NET SDK, run the following commands:
В Red Hat не рекомендуется активировать rh-dotnet50 на постоянной основе, так как это может повлиять на другие программы. Red Hat does not recommend permanently enabling rh-dotnet50 because it may affect other programs. Если вы хотите активировать rh-dotnet на постоянной основе, добавьте следующую строку в файл
/.bashrc. If you want to enable rh-dotnet permanently, add the following line to your
Установка среды выполнения Install the runtime
Среда выполнения .NET позволяет запускать приложения, созданные в версии .NET, не включающей среду выполнения. The .NET Runtime allows you to run apps that were made with .NET that didn’t include the runtime. Приведенные ниже команды позволяют установить среду выполнения ASP.NET Core, которая больше всего совместима с .NET Core. The commands below install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. В терминале выполните приведенные ниже команды. In your terminal, run the following commands.
В Red Hat не рекомендуется активировать rh-dotnet50 на постоянной основе, так как это может повлиять на другие программы. Red Hat does not recommend permanently enabling rh-dotnet50 because it may affect other programs. Если вы хотите активировать rh-dotnet50 на постоянной основе, добавьте следующую строку в файл
/.bashrc. If you want to enable rh-dotnet50 permanently, add the following line to your
В качестве альтернативы среде выполнения ASP.NET Core вы можете установить среду выполнения .NET без поддержки ASP.NET Core. Для этого в приведенных выше командах замените rh-dotnet50-aspnetcore-runtime-5.0 на rh-dotnet50-dotnet-runtime-5.0 . As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime that doesn’t include ASP.NET Core support: replace rh-dotnet50-aspnetcore-runtime-5.0 in the commands above with rh-dotnet50-dotnet-runtime-5.0 .
RHEL 7 ✔️ .NET Core 3.1 RHEL 7 ✔️ .NET Core 3.1
Перед установкой .NET выполните приведенные ниже команды, чтобы добавить ключ подписывания пакета Майкрософт в список доверенных ключей и добавить репозиторий пакетов Майкрософт. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the Microsoft package repository. Откройте терминал и выполните следующие команды: Open a terminal and run the following commands:
Следующая команда устанавливает пакет scl-utils : The following command installs the scl-utils package:
Установка пакета SDK Install the SDK
Пакет SDK для .NET Core позволяет разрабатывать приложения с помощью .NET Core. .NET Core SDK allows you to develop apps with .NET Core. При установке пакета SDK для .NET Core не нужно устанавливать соответствующую среду выполнения. If you install .NET Core SDK, you don’t need to install the corresponding runtime. Чтобы установить пакет SDK для .NET Core, выполните следующие команды: To install .NET Core SDK, run the following commands:
В Red Hat не рекомендуется активировать rh-dotnet31 на постоянной основе, так как это может повлиять на другие программы. Red Hat does not recommend permanently enabling rh-dotnet31 because it may affect other programs. Например, rh-dotnet31 включает версию libcurl , которая отличается от базовой версии RHEL. For example, rh-dotnet31 includes a version of libcurl that differs from the base RHEL version. Это может вызвать проблемы в программах, которые не ожидают другой версии libcurl . This may lead to issues in programs that do not expect a different version of libcurl . Если вы хотите активировать rh-dotnet на постоянной основе, добавьте следующую строку в файл
/.bashrc. If you want to enable rh-dotnet permanently, add the following line to your
Установка среды выполнения Install the runtime
Среда выполнения .NET Core позволяет запускать приложения, созданные с помощью версии .NET Core без поддержки среды выполнения. The .NET Core Runtime allows you to run apps that were made with .NET Core that didn’t include the runtime. Приведенные ниже команды позволяют установить среду выполнения ASP.NET Core, которая больше всего совместима с .NET Core. The commands below install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. В терминале выполните приведенные ниже команды. In your terminal, run the following commands.
В Red Hat не рекомендуется активировать rh-dotnet31 на постоянной основе, так как это может повлиять на другие программы. Red Hat does not recommend permanently enabling rh-dotnet31 because it may affect other programs. Например, rh-dotnet31 включает версию libcurl , которая отличается от базовой версии RHEL. For example, rh-dotnet31 includes a version of libcurl that differs from the base RHEL version. Это может вызвать проблемы в программах, которые не ожидают другой версии libcurl . This may lead to issues in programs that do not expect a different version of libcurl . Если вы хотите активировать rh-dotnet31 на постоянной основе, добавьте следующую строку в файл
/.bashrc. If you want to enable rh-dotnet31 permanently, add the following line to your
В качестве альтернативы среде выполнения ASP.NET Core вы можете установить среду выполнения .NET Core без поддержки ASP.NET Core. Для этого в приведенной выше команде замените rh-dotnet31-aspnetcore-runtime-3.1 на rh-dotnet31-dotnet-runtime-3.1 . As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime that doesn’t include ASP.NET Core support: replace rh-dotnet31-aspnetcore-runtime-3.1 in the commands above with rh-dotnet31-dotnet-runtime-3.1 .
Зависимости Dependencies
Если для установки используется диспетчер пакетов, эти библиотеки устанавливаются автоматически. When you install with a package manager, these libraries are installed for you. Но если вы устанавливаете .NET Core вручную или публикуете автономное приложение, вам потребуется установить эти библиотеки: But, if you manually install .NET Core or you publish a self-contained app, you’ll need to make sure these libraries are installed:
- krb5-libs krb5-libs
- libicu libicu
- openssl-libs openssl-libs
- zlib zlib
Если в целевой среде выполнения установлена версия OpenSSL 1.1 или более поздняя, необходимо установить compat-openssl10. If the target runtime environment’s OpenSSL version is 1.1 or newer, you’ll need to install compat-openssl10.
Дополнительные сведения о зависимостях см. в статье об автономных приложениях Linux. For more information about the dependencies, see Self-contained Linux apps.
Для приложений .NET Core, использующих сборку System.Drawing.Common, необходима также следующая зависимость: For .NET Core apps that use the System.Drawing.Common assembly, you’ll also need the following dependency:
Вы можете установить последнюю версию libgdiplus, добавив в систему репозиторий Mono. You can install a recent version of libgdiplus by adding the Mono repository to your system. Для получения дополнительной информации см. https://www.mono-project.com/download/stable/. For more information, see https://www.mono-project.com/download/stable/.
Установка других версий How to install other versions
Сведения об установке других выпусков .NET см. в документации по Red Hat для .NET. Consult the Red Hat documentation for .NET on the steps required to install other releases of .NET.