How To Install xhost on Fedora 36

In this tutorial we learn how to install xhost in Fedora 36. xhost is Manage hosts or users allowed to connect to the X server

Introduction

In this tutorial we learn how to install xhost on Fedora 36.

What is xhost

xhost is used to manage the list of host names or user names allowed to make connections to the X server.

We can use yum or dnf to install xhost on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install xhost.

Install xhost on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install xhost

Install xhost on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install xhost using yum by running the following command:

sudo yum -y install xhost

How To Uninstall xhost on Fedora 36

To uninstall only the xhost package we can use the following command:

sudo dnf remove xhost

xhost Package Contents on Fedora 36

/usr/bin/xhost
/usr/lib/.build-id
/usr/lib/.build-id/42
/usr/lib/.build-id/42/5d4cdc00403984731e1aea2bb8a11555709603
/usr/share/licenses/xhost
/usr/share/licenses/xhost/COPYING
/usr/share/man/man1/xhost.1.gz

References

Summary

In this tutorial we learn how to install xhost on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).