Installing Dotnet on Linux

Source: Internet
Author: User
Tags dotnet

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.