How To Install perl-Pod-Snippets on CentOS 7

In this tutorial we learn how to install perl-Pod-Snippets on CentOS 7. perl-Pod-Snippets is Extract and reformat snippets of POD

Introduction

In this tutorial we learn how to install perl-Pod-Snippets on CentOS 7.

What is perl-Pod-Snippets

This class is a very simple extension of Pod POD snippets from Perl code, and pretty-prints it so as to make it usable from other Perl code. As demonstrated above, Pod is immediately useful to test-driven-development nutcases who want to put every single line of Perl code under test, including code that is in the POD (typically a SYNOPSIS section). There are other uses, such as storing a piece of information that is both human- and machine-readable (e.g. an XML schema) simultaneously as documentation and code.

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

Install perl-Pod-Snippets on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Pod-Snippets using yum by running the following command:

sudo yum -y install perl-Pod-Snippets

Install perl-Pod-Snippets on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install perl-Pod-Snippets using dnf by running the following command:

sudo dnf -y install perl-Pod-Snippets

How To Uninstall perl-Pod-Snippets on CentOS 7

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

sudo dnf remove perl-Pod-Snippets

References

Summary

In this tutorial we learn how to install perl-Pod-Snippets on CentOS 7 using yum and dnf.