Install. NET Core for Debian 8 or Debian 9 (64-bit)

Source: Internet
Author: User
Tags gpg

Install. NET Core for Debian 8 or Debian 9 (64-bit)

To install. NET Core On Debian 8 or Debian 9 (64-bit), follow these steps:

Note: You must have a user-controlled directory to install tar.gz on Linux.

1. Prepare a new Debian 9 system, install XShell on a remote client, and remotely connect to Debian.

Enter the Internet IP address of ssh Debian, and enter the user name and password to log on.

2. Install system components.

$ Sudo apt-get update

$ Sudo apt-get install curl libunwind8 gettext apt-transport-https

3. Register a trusted Microsoft Product Key

Curl https://packages.microsoft.com/keys/microsoft.asc | gpg -- dearmor> microsoft. gpg

$ Sudo mv microsoft. gpg/etc/apt/trusted. gpg. d/microsoft. gpg

4. register the Microsoft Product source.

Debian 9 (Stretch ):

$ Sudo sh-c 'echo "deb [arch = amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main">/etc/apt/sources. list. d/dotnetdev. list'

Debian 8 (Jessie ):

$ Sudo sh-c 'echo "deb [arch = amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main">/etc/apt/sources. list. d/dotnetdev. list'

5. Install the. NET Core SDK.

$ Sudo apt-get update

$ Sudo apt-get install dotnet-sdk-2.0.0

6. Add dotnet to PATH.

Export PATH = $ PATH: $ HOME/dotnet

7. Check whether the installation is successful.

Dotnet -- version

This article permanently updates link: https://www.bkjia.com/Linux/2018-03/151468.htm

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.