How To Install ghc-hostname on Fedora 36

In this tutorial we learn how to install ghc-hostname in Fedora 36. ghc-hostname is Cross-platform means of determining the hostname

Introduction

In this tutorial we learn how to install ghc-hostname on Fedora 36.

What is ghc-hostname

A very simple package providing a cross-platform means of determining the hostname.

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

Install ghc-hostname 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 ghc-hostname using dnf by running the following command:

sudo dnf -y install ghc-hostname

Install ghc-hostname 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 ghc-hostname using yum by running the following command:

sudo yum -y install ghc-hostname

How To Uninstall ghc-hostname on Fedora 36

To uninstall only the ghc-hostname package we can use the following command:

sudo dnf remove ghc-hostname

ghc-hostname Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/0a859c0836c7838878330137f50e7ad3d08d95
/usr/lib64/libHShostname-1.0-B6rimLIP2kIHedZYMVt5f8-ghc8.10.5.so
/usr/share/licenses/ghc-hostname
/usr/share/licenses/ghc-hostname/LICENSE

References

Summary

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