How To Install perl-HTML-Strip on CentOS 7

In this tutorial we learn how to install perl-HTML-Strip on CentOS 7. perl-HTML-Strip is Perl extension for stripping HTML markup from text

Introduction

In this tutorial we learn how to install perl-HTML-Strip on CentOS 7.

What is perl-HTML-Strip

This module simply strips HTML-like markup from text in a very quick and brutal manner. It could quite easily be used to strip XML or SGML from text as well; but removing HTML markup is a much more common problem, hence this module lives in the HTML namespace.

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

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

sudo yum -y install perl-HTML-Strip

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

sudo dnf -y install perl-HTML-Strip

How To Uninstall perl-HTML-Strip on CentOS 7

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

sudo dnf remove perl-HTML-Strip

References

Summary

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