×


Install .Net Framework 5 on Ubuntu 20.04 LTS - Step by Step Process ?

.Net Core is the latest open source innovative framework of Microsoft on top of their propriety .Net Framework 4. 

.Net Framework is not only industry standard when it comes to developing highly scalable dynamic applications but also several businesses thrived because of .Net Framework.

Due to popularity and out of great demand, Microsoft decided to simplify their overly complex framework and made it open source for the world. 

Now you too can contribute to the core, therefore, it is called .Net Core Framework for the time being. 

Since it has been improved and made available for the public to install and download, let us enjoy the fresh release of .Net 5 framework.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform .Net Core related queries.

In this context, we shall look into how to install .Net Core framework, and launch your first web app.


How to install .NET Framework on Ubuntu System ?

1. First, grab the simplified deb file to add Microsoft self-hosted repositories using wget tool:

$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

2. Once you hit enter, wget will download a deb file which we will use to fetch a bunch of repositories for our needs and install them:

$ sudo dpkg -i packages-microsoft-prod.deb

Input your password and CLI will setup the packages for you.

3. Copy and paste given commands and wait.

It might take some time to update and fetch the required files from Microsoft repositories depending on your connectivity speed:

$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https &&
$ sudo apt-get update &&
$ sudo apt-get install -y dotnet-sdk-5.0

.Net SDK will be unpacked and installed for you.


How to Verify .NET Framework Installation on Ubuntu ?

You can Verify your installation using the below command:

$ dotnet -–version


[Need urgent assistance in fixing Ubuntu Linux related errors ? We can fix it. ]


Conclusion

This article covers how to Install .Net Framework 5 on Ubuntu. The .NET Core is a free and open-source software framework designed with keeping Linux and macOS in mind. It is a cross-platform successor to .NET Framework available for Linux, macOS and Windows systems. 

.NET Core framework already provides scaffolding tools for bootstrapping projects.


To install .NET SDK on Ubuntu:

The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:

# sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0


To Install ASP.NET Core runtime on Ubuntu:

In your terminal, run the following commands:

$ sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y aspnetcore-runtime-5.0


Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.

Open a terminal and run the following commands:

$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb