How To Install perl-Pod-Usage on Rocky Linux 8

In this tutorial we learn how to install perl-Pod-Usage on Rocky Linux 8. perl-Pod-Usage is Print a usage message from embedded POD documentation

Introduction

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

What is perl-Pod-Usage

pod2usage will print a usage message for the invoking script (using its embedded POD documentation) and then exit the script with the desired exit status. The usage message printed may have any one of three levels of “verboseness” If the verbose level is 1, then the synopsis is printed along with a description (if present) of the command line options and arguments. If the verbose level is 2, then the entire manual page is printed.

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

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

sudo dnf -y install perl-Pod-Usage

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

sudo yum -y install perl-Pod-Usage

How To Uninstall perl-Pod-Usage on Rocky Linux 8

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

sudo dnf remove perl-Pod-Usage

perl-Pod-Usage Package Contents on Rocky Linux 8

/usr/bin/pod2usage
/usr/share/doc/perl-Pod-Usage
/usr/share/doc/perl-Pod-Usage/CHANGES
/usr/share/doc/perl-Pod-Usage/README
/usr/share/man/man1/pod2usage.1.gz
/usr/share/man/man3/Pod::Usage.3pm.gz
/usr/share/perl5/vendor_perl/Pod
/usr/share/perl5/vendor_perl/Pod/Usage.pm

References

Summary

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