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.