How To Install perl-Sys-Hostname on Fedora 36
Introduction
In this tutorial we learn how to install perl-Sys-Hostname on Fedora 36.
What is perl-Sys-Hostname
It attempts several methods of getting the system hostname and then caches the result.
We can use yum or dnf to install perl-Sys-Hostname on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Sys-Hostname.
Install perl-Sys-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 perl-Sys-Hostname using dnf by running the following command:
sudo dnf -y install perl-Sys-Hostname
Install perl-Sys-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 perl-Sys-Hostname using yum by running the following command:
sudo yum -y install perl-Sys-Hostname
How To Uninstall perl-Sys-Hostname on Fedora 36
To uninstall only the perl-Sys-Hostname package we can use the following command:
sudo dnf remove perl-Sys-Hostname
perl-Sys-Hostname Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/e94d11cf654786d6bd27253a6ab6595b344fc6
/usr/lib64/perl5/Sys
/usr/lib64/perl5/Sys/Hostname.pm
/usr/lib64/perl5/auto/Sys
/usr/lib64/perl5/auto/Sys/Hostname
/usr/lib64/perl5/auto/Sys/Hostname/Hostname.so
/usr/share/man/man3/Sys::Hostname.3pm.gz
References
Summary
In this tutorial we learn how to install perl-Sys-Hostname on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).