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