How To Install perl-Sys-Hostname-Long on Fedora 36

In this tutorial we learn how to install perl-Sys-Hostname-Long in Fedora 36. perl-Sys-Hostname-Long is Try every conceivable way to get full hostname

Introduction

In this tutorial we learn how to install perl-Sys-Hostname-Long on Fedora 36.

What is perl-Sys-Hostname-Long

Attempt via many methods to get the system’s full name. The Sys class is the best and standard way to get the system hostname. However, it is missing the long hostname.

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

Install perl-Sys-Hostname-Long 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 perl-Sys-Hostname-Long using dnf by running the following command:

sudo dnf -y install perl-Sys-Hostname-Long

Install perl-Sys-Hostname-Long 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 perl-Sys-Hostname-Long using yum by running the following command:

sudo yum -y install perl-Sys-Hostname-Long

How To Uninstall perl-Sys-Hostname-Long on Fedora 36

To uninstall only the perl-Sys-Hostname-Long package we can use the following command:

sudo dnf remove perl-Sys-Hostname-Long

perl-Sys-Hostname-Long Package Contents on Fedora 36

/usr/share/doc/perl-Sys-Hostname-Long
/usr/share/doc/perl-Sys-Hostname-Long/Changes
/usr/share/doc/perl-Sys-Hostname-Long/README
/usr/share/man/man3/Sys::Hostname::Long.3pm.gz
/usr/share/perl5/vendor_perl/Sys
/usr/share/perl5/vendor_perl/Sys/Hostname
/usr/share/perl5/vendor_perl/Sys/Hostname/Long.pm
/usr/share/perl5/vendor_perl/Sys/Hostname/testall.pl

References

Summary

In this tutorial we learn how to install perl-Sys-Hostname-Long on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).