How To Install perl-utils on Rocky Linux 8

In this tutorial we learn how to install perl-utils on Rocky Linux 8. perl-utils is Utilities packaged with the Perl distribution

Introduction

In this tutorial we learn how to install perl-utils on Rocky Linux 8.

What is perl-utils

Several utilities which come with Perl distribution like h2ph, perlbug, perlthanks, pl2pm, and splain. Some utilities are provided by more specific packages like perldoc by perl-Pod-Perldoc.

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

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

sudo dnf -y install perl-utils

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

sudo yum -y install perl-utils

How To Uninstall perl-utils on Rocky Linux 8

To uninstall only the perl-utils package we can use the following command:

sudo dnf remove perl-utils

perl-utils Package Contents on Rocky Linux 8

/usr/bin/h2ph
/usr/bin/perlbug
/usr/bin/perlthanks
/usr/bin/pl2pm
/usr/bin/splain
/usr/share/man/man1/h2ph.1.gz
/usr/share/man/man1/perlbug.1.gz
/usr/share/man/man1/perlthanks.1.gz
/usr/share/man/man1/perlutil.1.gz
/usr/share/man/man1/pl2pm.1.gz
/usr/share/man/man1/splain.1.gz
/usr/share/perl5/pod
/usr/share/perl5/pod/perlutil.pod

References

Summary

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