I am using the CENTOS7, other Linux please refer to Microsoft documentation Microsoft Official Introduction Document:
Https://www.microsoft.com/net/learn/get-started/linux/centos
1. Add dotnet Product Feed
To start installing. NET, you need to register your Microsoft signing key and add a Microsoft product feed. This only needs to be done once on each machine. Run the following command from the command prompt:
sudo rpm--import https://packages.microsoft.com/keys/microsoft.asc
sudo sh-c ' echo-e ' [Packages-microsoft-com-prod]name=packages-microsoft-com-prod baseurl= https:// Packages.microsoft.com/yumrepos/microsoft-rhel7.3-prodenabled=1gpgcheck=1gpgkey=https://packages.microsoft.com /keys/microsoft.asc ">/etc/yum.repos.d/dotnetdev.repo"
2. Start installing the ASP. NET Core Runtime Environment
Run the following command from the command prompt:
sudo yum update//Upgrade Warehouse
sudo yum-y install Libunwind Libicu
sudo yum install dotnet-sdk-2.0.3
3. Determine if the installation was successful
Run the dotnet--version command to display the runtime environment version
Installing the ASP. NET core runtime environment in Linux