How To Install dotnet-host on Rocky Linux 8

In this tutorial we learn how to install dotnet-host on Rocky Linux 8. dotnet-host is .NET command line launcher

Introduction

In this tutorial we learn how to install dotnet-host on Rocky Linux 8.

What is dotnet-host

The .NET host is a command line program that runs a standalone .NET application or launches the SDK. .NET is a fast, lightweight and modular platform for creating cross platform applications that work on Linux, Mac and Windows. It particularly focuses on creating console applications, web applications and micro-services.

We can use yum or dnf to install dotnet-host on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install dotnet-host.

Install dotnet-host on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install dotnet-host using dnf by running the following command:

sudo dnf -y install dotnet-host

Install dotnet-host on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dotnet-host using yum by running the following command:

sudo yum -y install dotnet-host

How To Uninstall dotnet-host on Rocky Linux 8

To uninstall only the dotnet-host package we can use the following command:

sudo dnf remove dotnet-host

dotnet-host Package Contents on Rocky Linux 8

/etc/dotnet
/etc/dotnet/install_location
/etc/profile.d/dotnet.sh
/usr/bin/dotnet
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/ec3b1d77177e3a9f23faeb3751c7e72df564b6
/usr/lib64/dotnet
/usr/lib64/dotnet/LICENSE.txt
/usr/lib64/dotnet/ThirdPartyNotices.txt
/usr/lib64/dotnet/dotnet
/usr/lib64/dotnet/host
/usr/lib64/dotnet/host/fxr
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/dotnet
/usr/share/man/man1/dotnet-add-package.1.gz
/usr/share/man/man1/dotnet-add-reference.1.gz
/usr/share/man/man1/dotnet-build-server.1.gz
/usr/share/man/man1/dotnet-build.1.gz
/usr/share/man/man1/dotnet-clean.1.gz
/usr/share/man/man1/dotnet-help.1.gz
/usr/share/man/man1/dotnet-install-script.1.gz
/usr/share/man/man1/dotnet-list-package.1.gz
/usr/share/man/man1/dotnet-list-reference.1.gz
/usr/share/man/man1/dotnet-migrate.1.gz
/usr/share/man/man1/dotnet-msbuild.1.gz
/usr/share/man/man1/dotnet-new.1.gz
/usr/share/man/man1/dotnet-nuget-delete.1.gz
/usr/share/man/man1/dotnet-nuget-locals.1.gz
/usr/share/man/man1/dotnet-nuget-push.1.gz
/usr/share/man/man1/dotnet-pack.1.gz
/usr/share/man/man1/dotnet-publish.1.gz
/usr/share/man/man1/dotnet-remove-package.1.gz
/usr/share/man/man1/dotnet-remove-reference.1.gz
/usr/share/man/man1/dotnet-restore.1.gz
/usr/share/man/man1/dotnet-run.1.gz
/usr/share/man/man1/dotnet-sln.1.gz
/usr/share/man/man1/dotnet-store.1.gz
/usr/share/man/man1/dotnet-test.1.gz
/usr/share/man/man1/dotnet-tool-install.1.gz
/usr/share/man/man1/dotnet-tool-list.1.gz
/usr/share/man/man1/dotnet-tool-uninstall.1.gz
/usr/share/man/man1/dotnet-tool-update.1.gz
/usr/share/man/man1/dotnet-vstest.1.gz
/usr/share/man/man1/dotnet.1.gz
/etc/dotnet
/etc/dotnet/install_location
/etc/profile.d/dotnet.sh
/usr/bin/dotnet
/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/6fe00005f5d6f43266d87ca083b76e0256ef4d
/usr/lib64/dotnet
/usr/lib64/dotnet/LICENSE.txt
/usr/lib64/dotnet/ThirdPartyNotices.txt
/usr/lib64/dotnet/dotnet
/usr/lib64/dotnet/host
/usr/lib64/dotnet/host/fxr
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/dotnet
/usr/share/man/man1/dotnet-add-package.1.gz
/usr/share/man/man1/dotnet-add-reference.1.gz
/usr/share/man/man1/dotnet-build-server.1.gz
/usr/share/man/man1/dotnet-build.1.gz
/usr/share/man/man1/dotnet-clean.1.gz
/usr/share/man/man1/dotnet-help.1.gz
/usr/share/man/man1/dotnet-install-script.1.gz
/usr/share/man/man1/dotnet-list-package.1.gz
/usr/share/man/man1/dotnet-list-reference.1.gz
/usr/share/man/man1/dotnet-migrate.1.gz
/usr/share/man/man1/dotnet-msbuild.1.gz
/usr/share/man/man1/dotnet-new.1.gz
/usr/share/man/man1/dotnet-nuget-delete.1.gz
/usr/share/man/man1/dotnet-nuget-locals.1.gz
/usr/share/man/man1/dotnet-nuget-push.1.gz
/usr/share/man/man1/dotnet-pack.1.gz
/usr/share/man/man1/dotnet-publish.1.gz
/usr/share/man/man1/dotnet-remove-package.1.gz
/usr/share/man/man1/dotnet-remove-reference.1.gz
/usr/share/man/man1/dotnet-restore.1.gz
/usr/share/man/man1/dotnet-run.1.gz
/usr/share/man/man1/dotnet-sln.1.gz
/usr/share/man/man1/dotnet-store.1.gz
/usr/share/man/man1/dotnet-test.1.gz
/usr/share/man/man1/dotnet-tool-install.1.gz
/usr/share/man/man1/dotnet-tool-list.1.gz
/usr/share/man/man1/dotnet-tool-uninstall.1.gz
/usr/share/man/man1/dotnet-tool-update.1.gz
/usr/share/man/man1/dotnet-vstest.1.gz
/usr/share/man/man1/dotnet.1.gz
/etc/dotnet
/etc/dotnet/install_location
/etc/profile.d/dotnet.sh
/usr/bin/dotnet
/usr/lib/.build-id
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/792be5d69204391f932772acd346d607c5e7a3
/usr/lib64/dotnet
/usr/lib64/dotnet/LICENSE.txt
/usr/lib64/dotnet/ThirdPartyNotices.txt
/usr/lib64/dotnet/dotnet
/usr/lib64/dotnet/host
/usr/lib64/dotnet/host/fxr
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/dotnet
/usr/share/man/man1/dotnet-add-package.1.gz
/usr/share/man/man1/dotnet-add-reference.1.gz
/usr/share/man/man1/dotnet-build-server.1.gz
/usr/share/man/man1/dotnet-build.1.gz
/usr/share/man/man1/dotnet-clean.1.gz
/usr/share/man/man1/dotnet-help.1.gz
/usr/share/man/man1/dotnet-install-script.1.gz
/usr/share/man/man1/dotnet-list-package.1.gz
/usr/share/man/man1/dotnet-list-reference.1.gz
/usr/share/man/man1/dotnet-migrate.1.gz
/usr/share/man/man1/dotnet-msbuild.1.gz
/usr/share/man/man1/dotnet-new.1.gz
/usr/share/man/man1/dotnet-nuget-delete.1.gz
/usr/share/man/man1/dotnet-nuget-locals.1.gz
/usr/share/man/man1/dotnet-nuget-push.1.gz
/usr/share/man/man1/dotnet-pack.1.gz
/usr/share/man/man1/dotnet-publish.1.gz
/usr/share/man/man1/dotnet-remove-package.1.gz
/usr/share/man/man1/dotnet-remove-reference.1.gz
/usr/share/man/man1/dotnet-restore.1.gz
/usr/share/man/man1/dotnet-run.1.gz
/usr/share/man/man1/dotnet-sln.1.gz
/usr/share/man/man1/dotnet-store.1.gz
/usr/share/man/man1/dotnet-test.1.gz
/usr/share/man/man1/dotnet-tool-install.1.gz
/usr/share/man/man1/dotnet-tool-list.1.gz
/usr/share/man/man1/dotnet-tool-uninstall.1.gz
/usr/share/man/man1/dotnet-tool-update.1.gz
/usr/share/man/man1/dotnet-vstest.1.gz
/usr/share/man/man1/dotnet.1.gz

References

Summary

In this tutorial we learn how to install dotnet-host on Rocky Linux 8 using yum and dnf.