# Installation

- [在 Linux 發行版本上安裝 .NET - .NET | Microsoft Learn](https://learn.microsoft.com/zh-tw/dotnet/core/install/linux)
- [How To Install Microsoft .NET Core SDK On Linux](https://ostechnix.com/how-to-install-microsoft-net-core-sdk-on-linux/)

#### RedHat 8

- [https://docs.microsoft.com/zh-tw/dotnet/core/install/linux-rhel](https://docs.microsoft.com/zh-tw/dotnet/core/install/linux-rhel)
- [https://access.redhat.com/documentation/en-us/net/6.0/html/getting\_started\_with\_.net\_on\_rhel\_8/index](https://access.redhat.com/documentation/en-us/net/6.0/html/getting_started_with_.net_on_rhel_8/index)

.NET 6.0 已經包含在官方的 AppStream 套件庫裡。

安裝 SDK 開發環境

```shell
sudo yum install dotnet-sdk-6.0 -y
```

安裝 runtime 執行環境

```shell
sudo dnf install aspnetcore-runtime-6.0
```

檢查版本

```shell
dotnet --list-sdks
dotnet --list-runtimes
```

#### Ubuntu 22.04

- [.NET 6 is now in Ubuntu 22.04](https://devblogs.microsoft.com/dotnet/dotnet-6-is-now-in-ubuntu-2204/)

#### Ubuntu 20.04

- [Getting started with cross-platform development using .NET on Ubuntu on WSL | Ubuntu](https://ubuntu.com/blog/creating-cross-platform-applications-with-net-on-ubuntu-on-wsl)