Debian 8 or Debian 9 (64-bit) install. NET Core and debiancore

Source: Internet
Author: User

Debian 8 or Debian 9 (64-bit) install. NET Core and debiancore

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 ):

Copy codeThe Code is as follows: $ 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 ):

Copy codeThe Code is as follows: $ 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

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

Related Article

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.