Saturday, September 24, 2016

Install .NETCore in a Linux server


Install .NETCore on Ubuntu


In .NET framework history, .NET have its full framework from .NET 1.0 to .NET 4.6.2, specially created for windows platform. Latest version of .NET framework is .NET 4.6.2 up to now, In the end of June Microsoft released a new .NET framework called .NET Core for Windows, Linux and Mac. A great feature of .NET core is, a solution build on windows can be run and modify in a linux based environment. We can build an application on Windows, and can host it in a Linux server.

Add dot net apt-get feed












Setup the apt-get feed and update it.

apt-get is a free package manager program. It works with Ubuntu’s APT (Advanced Packaging Tool). Using that command line program, We can Install new packages, remove or upgrade packages.

For this example, I used Ubuntu 16.04, run these commands,

sudo sh -c ‘echo “deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main” > /etc/apt/sources.list.d/dotnetdev.list’


sudo apt-key adv –keyserver apt-mo.trafficmanager.net –recv-keys 417A0893

Then update apt-get feed Using following command,

sudo apt-get update


Install .NETCore top of apt-get






















Install .NETCore using following command,

sudo apt-get install dotnet-dev-1.0.0-preview2-003121

















Check whether .NETCore is properly installed using dotnet command. It shows .NETCore version as 1.0.1


No comments:

Post a Comment