Site icon TestingDocs.com

Install .NET Runtime on CentOS Linux

Overview

In this tutorial, we will install .NET Runtime on CentOS Linux operating system. We can use the package manager to download and install the runtime on Linux.

CentOS is an enterprise-class Linux operating system. CentOS operating system is a RedHat Enterprise Linux family ( RHEL) based Linux distribution.

Environment

Install .NET Runtime

The steps to install the runtime are as follows:

Open Terminal

The general syntax to install a software package using YUM is:

$ sudo yum install dotnet-runtime-<version>

yum is the package manager for RPM-based Linux distributions like CentOS. It stands for Yellowdog Updater Modified. yum is the default package manager for CentOS. DNF is the next version of yum. (DNF is sometimes referred to as Dandified YUM)

For example, to install the .NET runtime 3.1 version, issue the following command:

$ sudo yum install dotnet-runtime-3.1

This will list the packages that would install and the package dependencies.

It will prompt for the consent: Is this ok [y/N]

Enter y to continue to install the packages.

That’s it. The runtime would be installed on the Linux machine. We can check with the dotnet command.

$ dotnet –info

For more information on CentOS Linux, visit the official website:

https://www.centos.org/

Exit mobile version