.NET Core is the cross platform and open-source framework based on .NET framework. It is maintained by both Microsoft and the community at https://github.com/dotnet/core on Github. In this blog post, we’ll learn to install dotnet core on the Ubuntu. For the post’s purpose we’ll use Ubuntu 16.04 since that is latest LTS release from Ubuntu which has the support from almost all software vendors.
Register Microsoft key and feed
Before installing .NET, you’ll need to register the Microsoft key, register the product repository, and install required dependencies by running the following commands:
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Install .NET Core Runtime
For this, we need to run the following commands:
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-hosting-2.0.6
The previous command will install the .NET Core Hosting Bundle, which includes the .NET Core runtime and the ASP.NET Core runtime. To install just the .NET Core runtime, use the dotnet-runtime-2.0.6 package.
Install .NET Core SDK
For this, we need to run the following commands:
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
Reference: https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/sdk-current
Verify Installation
Run dotnet --version
command. It would list the version of the .NET Core SDK currently in use. To see all SDK versions installed, use: dotnet --list-sdks
. To see runtime versions use: dotnet --list-runtimes
[…] https://mohitgoyal.co/2018/09/22/install-dotnet-core-sdk-and-runtime-on-ubuntu-os […]
LikeLike
followed the installation of dotnet sdk.. up and running now on ubuntu. thank you
LikeLike