From the course: Deploying ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Install .NET Core on Linux

Install .NET Core on Linux

From the course: Deploying ASP.NET Core Applications

Start my 1-month free trial

Install .NET Core on Linux

- [Instructor] Unlike previous versions of ASP.NET, you can run ASP.NET Core applications directly on Linux. This is a great option for applications that need to run on Linux-heavy infrastructure like Amazon Web Services or inside of Docker containers. To get started, you first need to install the .NET Core runtime packages on your Linux machine. The official .NET download site at microsoft.com/net/download includes instructions for Linux. What you need is the runtime. The instructions will vary by distribution. For this example, I'll use Ubuntu 16.04. We need to run a few commands to add the .NET sources to the package manager. Then we'll run sudo apt-get install apt-transport-https and sudo apt-get update. And finally, sudo apt-get install aspnetcore-runtime-2.1, which is the latest version at the time of this course. You can verify that everything was installed correctly by running dotnet --info. If you see this version output, then everything's working properly. Your Linux machine…

Contents