How to Install dotnet core on Ubuntu 16.04.5 ?
💻 coding

How to Install dotnet core on Ubuntu 16.04.5 ?

1 min read 96 words
1 min read
ShareWhatsAppPost on X
  • 1Register the Microsoft key and product repository before installing .NET on Ubuntu 16.04.5.
  • 2Run specific commands in the command prompt to install required dependencies for .NET.
  • 3Update the product list and install the .NET SDK using the apt-get command.

AI-generated summary · May not capture all nuances

Key Insight
AskGif

"Register the Microsoft key and product repository before installing .NET on Ubuntu 16.04.5."

How to Install dotnet core on Ubuntu 16.04.5 ?

Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine.

Open a command prompt and run the following commands:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list 
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list

wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

Install the .NET SDK

Update the products available for installation, then install the .NET SDK.

In your command prompt, run the following commands:

sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1

Enjoyed this article?

Share it with someone who'd find it useful.

ShareWhatsAppPost on X

AskGif

Published on 22 November 2018 · 1 min read · 96 words

Part of AskGif Blog · coding

You might also like

How to Install dotnet core on Ubuntu 16.04.5 ? | AskGif Blog