Objective:
There has been a lot of research on Linux, the micro-software involved very little, dotnet gave me the impression is quite mature on the Windows platform, but the cross-platform is a weakness, recently connected to a new project, need to install on the Linux platform dotnet
Viewing the data reveals that the. NET core of the micro software is quite mature across platforms.
My task is to write the developer of the app on the dotnet run up, when I was directly installed Dotnet SDK, the program is running normally, and later view the data found that we want to run the app does not need to install the SDK, only install its runtime environment.
In the production environment, in line with the principle of simple is best, not to use the things do not install, reduce the likelihood of error.
The following is the installation process for. NET core run time under Linux:
Install some of the packages that dotnet depends on:
I am using the CentOS operating system and the dependencies that are required are:
- Libunwind
- Lttng-ust
- Libcurl
- Openssl-libs
- Libuuid
- Krb5-libs
- Libicu
- Zlib
If the above packages are not installed, use Yum to install them.
The following generates the dotnet Yum Source:
sudo rpm--import https://packages.microsoft.com/keys/microsoft.ascsudo sh-c ' Echo-e "[packages-microsoft-com-prod]\ Nname=packages-microsoft-com-prod \nbaseurl= https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\ Nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc ">/etc/yum.repos.d/ Dotnetdev.repo '
At last:
sudo yum updatesudo yum install libunwind libicusudo yum install dotnet-runtime-2.0.6
Installing Dotnet on Linux