Skip to content

Commit 9323743

Browse files
adegeotdykstra
andauthored
Update the install docs for linux (#21526)
* update note about arm * Fix incorrect LTS * Update docs/core/install/includes/linux-install-package-manager-x64-vs-arm.md Co-authored-by: Tom Dykstra <[email protected]> * Fix fedora instructions * Updated instructions on fedora,centos,rhel * rhle yum for 5.0 * minor Co-authored-by: Tom Dykstra <[email protected]>
1 parent b06cdf5 commit 9323743

File tree

8 files changed

+69
-26
lines changed

8 files changed

+69
-26
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11

2-
_Package manager installs are only supported on the **x64** architecture_. Other architectures, such as **ARM**, must manually install the .NET Core SDK or .NET Core Runtime. For more information, see the [manually install section](#manual-install).
2+
> [!IMPORTANT]
3+
> Package manager installs are only supported on the **x64** architecture. Other architectures, such as **ARM**, must manually install .NET. For more information, see the [manually install section](#manual-install).

docs/core/install/includes/linux-install-scripted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The [dotnet-install scripts](../../tools/dotnet-install-script.md) are used for automation and non-admin installs of the **SDK** and **Runtime**. You can download the script from <https://dot.net/v1/dotnet-install.sh>.
33

4-
The script defaults to installing the latest SDK [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 5.0. To install the current release, which may not be an (LTS) version, use the `-c Current` parameter.
4+
The script defaults to installing the latest SDK [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 3.1. To install the current release, which may not be an (LTS) version, use the `-c Current` parameter.
55

66
```bash
77
./dotnet-install.sh -c Current

docs/core/install/linux-centos.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ The following versions of .NET are no longer supported. The downloads for these
4141

4242
## CentOS 8 ✔️
4343

44-
.NET 5.0 is available in the default package repositories for CentOS 8.
44+
> [!TIP]
45+
> .NET 5.0 isn't yet available in the default package repositories, but .NET Core 3.1 is. To install .NET Core 3.1, use the `dnf install` command with the appropriate package, such as `aspnetcore-runtime-3.1` or `dotnet-sdk-3.1`. The following instructions are for .NET 5.0.
46+
47+
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
48+
49+
```bash
50+
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
51+
```
4552

4653
[!INCLUDE [linux-dnf-install-50](includes/linux-install-50-dnf.md)]
4754

docs/core/install/linux-fedora.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,31 @@ The following versions of .NET are no longer supported. The downloads for these
4444

4545
## Fedora 33 ✔️
4646

47-
.NET 5 and .NET Core 3.1 are available in the default package repositories for Fedora 33.
47+
> [!TIP]
48+
> .NET Core 3.1 is available in the default package repositories for Fedora 33. To install .NET Core 3.1, use the `dnf install` command with the appropriate package, such as `aspnetcore-runtime-3.1` or `dotnet-sdk-3.1`. .NET 5.0 isn't yet available in the default package repositories.
4849
49-
[!INCLUDE [linux-dnf-install-31](includes/linux-install-50-dnf.md)]
50+
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
51+
52+
```bash
53+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
54+
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/33/prod.repo
55+
```
56+
57+
[!INCLUDE [linux-dnf-install-50](includes/linux-install-50-dnf.md)]
5058

5159
## Fedora 32 ✔️
5260

53-
.NET Core 3.1 is available in the default package repositories for Fedora 32.
61+
> [!TIP]
62+
> .NET Core 3.1 is available in the default package repositories for Fedora 32. To install .NET Core 3.1, use the `dnf install` command with the appropriate package, such as `aspnetcore-runtime-3.1` or `dotnet-sdk-3.1`. .NET 5.0 isn't yet available in the default package repositories.
5463
55-
[!INCLUDE [linux-dnf-install-31](includes/linux-install-31-dnf.md)]
64+
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
65+
66+
```bash
67+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
68+
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/32/prod.repo
69+
```
70+
71+
[!INCLUDE [linux-dnf-install-50](includes/linux-install-50-dnf.md)]
5672

5773
## Fedora 31 ❌
5874

docs/core/install/linux-rhel.md

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ The following table is a list of currently supported .NET releases on both RHEL
2424
- A ❌ indicates that the version of RHEL or .NET isn't supported on that RHEL release.
2525
- When both a version of RHEL and a version of .NET have ✔️, that OS and .NET combination is supported.
2626

27-
| RHEL | .NET Core 2.1 | .NET Core 3.1 | .NET 5.0 |
27+
| RHEL | .NET Core 2.1 | .NET Core 3.1 | .NET 5.0 |
2828
|--------------------------|---------------|---------------|----------------|
29-
| ✔️ [8](#rhel-8-) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
30-
| ✔️ [7](#rhel-7-) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
29+
| ✔️ [8](#rhel-8-) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
30+
| ✔️ [7](#rhel-7--net-50) | ✔️ 2.1 | ✔️ [3.1](#rhel-7--net-core-31) | ✔️ [5.0](#rhel-7--net-50) |
3131

3232
The following versions of .NET are no longer supported. The downloads for these still remain published:
3333

@@ -41,11 +41,30 @@ Consult the [Red Hat documentation for .NET](https://access.redhat.com/documenta
4141

4242
## RHEL 8 ✔️
4343

44-
.NET is included in the AppStream repositories for RHEL 8.
44+
> [!TIP]
45+
> .NET 5.0 isn't yet available in the AppStream repositories, but .NET Core 3.1 is. To install .NET Core 3.1, use the `dnf install` command with the appropriate package, such as `aspnetcore-runtime-3.1` or `dotnet-sdk-3.1`. The following instructions are for .NET 5.0.
46+
47+
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
48+
49+
```bash
50+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
51+
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/rhel/8/prod.repo
52+
```
4553

4654
[!INCLUDE [linux-dnf-install-50](includes/linux-install-50-dnf.md)]
4755

48-
## RHEL 7 ✔️
56+
## RHEL 7 ✔️ .NET 5.0
57+
58+
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
59+
60+
```bash
61+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
62+
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/rhel/7/prod.repo
63+
```
64+
65+
[!INCLUDE [linux-dnf-install-50](includes/linux-install-50-yum.md)]
66+
67+
## RHEL 7 ✔️ .NET Core 3.1
4968

5069
[!INCLUDE [linux-prep-intro-generic](includes/linux-prep-intro-generic.md)]
5170

@@ -57,37 +76,37 @@ sudo yum install scl-utils
5776

5877
### Install the SDK
5978

60-
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
79+
.NET Core SDK allows you to develop apps with .NET Core. If you install .NET Core SDK, you don't need to install the corresponding runtime. To install .NET Core SDK, run the following commands:
6180

6281
```bash
6382
subscription-manager repos --enable=rhel-7-server-dotnet-rpms
64-
yum install rh-dotnet50 -y
65-
scl enable rh-dotnet50 bash
83+
yum install rh-dotnet31 -y
84+
scl enable rh-dotnet31 bash
6685
```
6786

68-
Red Hat does not recommend permanently enabling `rh-dotnet50` because it may affect other programs. For example, `rh-dotnet50` includes a version of `libcurl` that differs from the base RHEL version. This may lead to issues in programs that do not expect a different version of `libcurl`. If you want to enable `rh-dotnet` permanently, add the following line to your _~/.bashrc_ file.
87+
Red Hat does not recommend permanently enabling `rh-dotnet31` because it may affect other programs. For example, `rh-dotnet31` includes a version of `libcurl` that differs from the base RHEL version. This may lead to issues in programs that do not expect a different version of `libcurl`. If you want to enable `rh-dotnet` permanently, add the following line to your _~/.bashrc_ file.
6988

7089
```bash
71-
source scl_source enable rh-dotnet50
90+
source scl_source enable rh-dotnet31
7291
```
7392

7493
### Install the runtime
7594

76-
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
95+
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. 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.
7796

7897
```bash
7998
subscription-manager repos --enable=rhel-7-server-dotnet-rpms
80-
yum install rh-dotnet50-aspnetcore-runtime-5.0 -y
81-
scl enable rh-dotnet50-aspnetcore-runtime-5.0 bash
99+
yum install rh-dotnet31-aspnetcore-runtime-3.1 -y
100+
scl enable rh-dotnet31-aspnetcore-runtime-3.1 bash
82101
```
83102

84-
Red Hat doesn't recommend permanently enabling `rh-dotnet50-aspnetcore-runtime-5.0` because it may affect other programs. For example, `rh-dotnet50-aspnetcore-runtime-5.0` includes a version of `libcurl` that differs from the base RHEL version. This may lead to issues in programs that do not expect a different version of `libcurl`. If you want to enable `rh-dotnet50-aspnetcore-runtime-5.0` permanently, add the following line to your _~/.bashrc_ file.
103+
Red Hat does not recommend permanently enabling `rh-dotnet31-aspnetcore-runtime-3.1` because it may affect other programs. For example, `rh-dotnet31-aspnetcore-runtime-3.1` includes a version of `libcurl` that differs from the base RHEL version. This may lead to issues in programs that do not expect a different version of `libcurl`. If you want to enable `rh-dotnet31-aspnetcore-runtime-3.1` permanently, add the following line to your _~/.bashrc_ file.
85104

86105
```bash
87-
source scl_source enable rh-dotnet50-aspnetcore-runtime-5.0
106+
source scl_source enable rh-dotnet31-aspnetcore-runtime-3.1
88107
```
89108

90-
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace `rh-dotnet50-aspnetcore-runtime-5.0` in the previous commands with `rh-dotnet50-dotnet-runtime-5.0`.
109+
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`.
91110

92111
## Snap
93112

docs/core/install/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The following table is a list of currently supported .NET releases on both RHEL
128128
| RHEL | .NET Core 2.1 | .NET Core 3.1 | .NET 5.0 |
129129
|--------------------------|---------------|---------------|----------------|
130130
| ✔️ [8](linux-rhel.md#rhel-8-) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
131-
| ✔️ [7](linux-rhel.md#rhel-7-) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
131+
| ✔️ [7](linux-rhel.md#rhel-7--net-50) | ✔️ 2.1 | ✔️ [3.1](linux-rhel.md#rhel-7--net-core-31) | ✔️ [5.0](linux-rhel.md#rhel-7--net-50) |
132132

133133
For more information, see [Install .NET on RHEL](linux-rhel.md).
134134

docs/core/install/macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ While Visual Studio Code doesn't come with an automated .NET installer like Visu
176176

177177
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for automation and non-admin installs of the runtime. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md).
178178

179-
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 5.0. You can choose a specific release by specifying the `current` switch. Include the `runtime` switch to install a runtime. Otherwise, the script installs the [SDK](./windows.md).
179+
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 3.1. You can choose a specific release by specifying the `current` switch. Include the `runtime` switch to install a runtime. Otherwise, the script installs the [SDK](./windows.md).
180180

181181
```bash
182182
./dotnet-install.sh --channel 5.0 --runtime aspnetcore

docs/core/install/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ The previous requirements are also required if you come across one of the follow
199199

200200
The [dotnet-install scripts](../tools/dotnet-install-script.md) are used for CI automation and non-admin installs of the runtime. You can download the script from the [dotnet-install script reference page](../tools/dotnet-install-script.md).
201201

202-
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 5.0. You can choose a specific release by specifying the `Channel` switch. Include the `Runtime` switch to install a runtime. Otherwise, the script installs the SDK.
202+
The script defaults to installing the latest [long term support (LTS)](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version, which is .NET 3.1. You can choose a specific release by specifying the `Channel` switch. Include the `Runtime` switch to install a runtime. Otherwise, the script installs the SDK.
203203

204204
```powershell
205205
dotnet-install.ps1 -Channel 5.0 -Runtime aspnetcore

0 commit comments

Comments
 (0)